Mercurial > octave-nkf
annotate libinterp/corefcn/jit-util.cc @ 18600:67445219aee2 draft
-Werror at JIT related files
author | LYH <lyh.kernel@gmail.com> |
---|---|
date | Fri, 21 Mar 2014 14:59:39 -0400 |
parents | d63878346099 |
children |
rev | line source |
---|---|
18600 | 1 #pragma GCC diagnostic push |
2 #pragma GCC diagnostic error "-Werror" | |
15016 | 3 /* |
4 | |
17744
d63878346099
maint: Update copyright notices for release.
John W. Eaton <jwe@octave.org>
parents:
17164
diff
changeset
|
5 Copyright (C) 2012-2013 Max Brister |
15016 | 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 | |
15016 | 27 // defines required by llvm |
28 #define __STDC_LIMIT_MACROS | |
29 #define __STDC_CONSTANT_MACROS | |
30 | |
31 #ifdef HAVE_CONFIG_H | |
32 #include <config.h> | |
33 #endif | |
34 | |
35 #ifdef HAVE_LLVM | |
36 | |
17164 | 37 #ifdef HAVE_LLVM_IR_FUNCTION_H |
38 #include <llvm/IR/Value.h> | |
39 #else | |
15016 | 40 #include <llvm/Value.h> |
17164 | 41 #endif |
42 | |
15016 | 43 #include <llvm/Support/raw_os_ostream.h> |
44 | |
45 std::ostream& | |
46 operator<< (std::ostream& os, const llvm::Value& v) | |
47 { | |
48 llvm::raw_os_ostream llvm_out (os); | |
49 v.print (llvm_out); | |
50 return os; | |
51 } | |
52 | |
53 #endif | |
18600 | 54 |
55 #pragma GCC diagnostic pop |