diff options
| author | Bob Wilson <bob.wilson@apple.com> | 2013-04-12 20:17:20 +0000 |
|---|---|---|
| committer | Bob Wilson <bob.wilson@apple.com> | 2013-04-12 20:17:20 +0000 |
| commit | 2b59395d0e15041fa4550f5a337ecd009aaf65d4 (patch) | |
| tree | 9e957e771c400d8759190763ffe75190415d9374 /clang/utils/TableGen/NeonEmitter.cpp | |
| parent | b3ae87617437c5850003cd7ab35e0b3581d2b7da (diff) | |
| download | bcm5719-llvm-2b59395d0e15041fa4550f5a337ecd009aaf65d4.tar.gz bcm5719-llvm-2b59395d0e15041fa4550f5a337ecd009aaf65d4.zip | |
Define Neon intrinsics as "static inline" to avoid warning. rdar://13108414
We had been defining Neon intrinsics as "static" with always_inline attributes.
If you use them from an extern inline function, you get a warning, e.g.:
static function 'vadd_u8' is used in an inline function with external linkage
This change simply adds the inline keyword to avoid that warning.
llvm-svn: 179406
Diffstat (limited to 'clang/utils/TableGen/NeonEmitter.cpp')
| -rw-r--r-- | clang/utils/TableGen/NeonEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/utils/TableGen/NeonEmitter.cpp b/clang/utils/TableGen/NeonEmitter.cpp index d453ededd5e..c605859717d 100644 --- a/clang/utils/TableGen/NeonEmitter.cpp +++ b/clang/utils/TableGen/NeonEmitter.cpp @@ -1342,7 +1342,7 @@ void NeonEmitter::run(raw_ostream &OS) { } } - OS<<"#define __ai static __attribute__((__always_inline__, __nodebug__))\n\n"; + OS<<"#define __ai static inline __attribute__((__always_inline__, __nodebug__))\n\n"; std::vector<Record*> RV = Records.getAllDerivedDefinitions("Inst"); |

