Mercurial > hg > octave-lyh
annotate libinterp/template-inst/Array-jit.cc @ 17531:f9abc8e5fc2e
-Werror at JIT related files
author | LYH <lyh.kernel@gmail.com> |
---|---|
date | Fri, 27 Sep 2013 17:21:33 +0800 |
parents | e2de3c8882be |
children |
rev | line source |
---|---|
17531 | 1 #pragma GCC diagnostic push |
2 #pragma GCC diagnostic error "-Werror" | |
14903 | 3 /* |
4 | |
16768 | 5 Copyright (C) 2012 Max Brister |
14903 | 6 |
7 This file is part of Octave. | |
8 | |
9 Octave is free software; you can redistribute it and/or modify it | |
10 under the terms of the GNU General Public License as published by the | |
11 Free Software Foundation; either version 3 of the License, or (at your | |
12 option) any later version. | |
13 | |
14 Octave is distributed in the hope that it will be useful, but WITHOUT | |
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
16 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
17 for more details. | |
18 | |
19 You should have received a copy of the GNU General Public License | |
20 along with Octave; see the file COPYING. If not, see | |
21 <http://www.gnu.org/licenses/>. | |
22 | |
23 */ | |
24 | |
16768 | 25 // Author: Max Brister <max@2bass.com> |
26 | |
14903 | 27 #ifdef HAVE_CONFIG_H |
28 #include <config.h> | |
29 #endif | |
30 | |
14972
457eb974310b
src/TEMPLATE-INST/Array-jit.cc: Check for LLVM presence
Max Brister <max@2bass.com>
parents:
14903
diff
changeset
|
31 #ifdef HAVE_LLVM |
457eb974310b
src/TEMPLATE-INST/Array-jit.cc: Check for LLVM presence
Max Brister <max@2bass.com>
parents:
14903
diff
changeset
|
32 |
14903 | 33 #include "Array.h" |
34 #include "Array.cc" | |
35 | |
14992 | 36 extern template class OCTAVE_API Array<octave_idx_type>; |
37 | |
15864
20f4a2399be0
Array-jit.cc: Be more conservative on header inclusion
Max Brister <max@2bass.com>
parents:
15195
diff
changeset
|
38 #include "jit-ir.h" |
14903 | 39 |
15014
094bc0a145a1
Take into account different calling conventions
Max Brister <max@2bass.com>
parents:
14992
diff
changeset
|
40 NO_INSTANTIATE_ARRAY_SORT (jit_function); |
14903 | 41 |
15014
094bc0a145a1
Take into account different calling conventions
Max Brister <max@2bass.com>
parents:
14992
diff
changeset
|
42 INSTANTIATE_ARRAY (jit_function, OCTINTERP_API); |
14972
457eb974310b
src/TEMPLATE-INST/Array-jit.cc: Check for LLVM presence
Max Brister <max@2bass.com>
parents:
14903
diff
changeset
|
43 |
15865
500650d6ddf5
Array-jit.cc: Ensure Cell.h is never included
Max Brister <max@2bass.com>
parents:
15864
diff
changeset
|
44 #ifdef Cell_h |
500650d6ddf5
Array-jit.cc: Ensure Cell.h is never included
Max Brister <max@2bass.com>
parents:
15864
diff
changeset
|
45 #error Must not include Cell.h in Array-jit.h |
500650d6ddf5
Array-jit.cc: Ensure Cell.h is never included
Max Brister <max@2bass.com>
parents:
15864
diff
changeset
|
46 #error This causes problems on MSVC |
14972
457eb974310b
src/TEMPLATE-INST/Array-jit.cc: Check for LLVM presence
Max Brister <max@2bass.com>
parents:
14903
diff
changeset
|
47 #endif |
15865
500650d6ddf5
Array-jit.cc: Ensure Cell.h is never included
Max Brister <max@2bass.com>
parents:
15864
diff
changeset
|
48 |
500650d6ddf5
Array-jit.cc: Ensure Cell.h is never included
Max Brister <max@2bass.com>
parents:
15864
diff
changeset
|
49 #endif |
17531 | 50 |
51 #pragma GCC diagnostic pop |