diff options
author | Eric Christopher <echristo@apple.com> | 2011-06-28 18:20:53 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-06-28 18:20:53 +0000 |
commit | de31fd7eeebdc64fb043463e7f515dab8eccac8d (patch) | |
tree | b69231ba2b0eb6492e12412c964b1bee6996f59e /include/clang/Basic/TargetInfo.h | |
parent | bf9eb88792e022e54a658657bf22e1925948e384 (diff) |
Split out logic for valid clobbers and valid inline asm registers.
Fixes rdar://9281377
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134016 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/TargetInfo.h')
-rw-r--r-- | include/clang/Basic/TargetInfo.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/clang/Basic/TargetInfo.h b/include/clang/Basic/TargetInfo.h index a1625bfc9e..4559cf2f64 100644 --- a/include/clang/Basic/TargetInfo.h +++ b/include/clang/Basic/TargetInfo.h @@ -303,6 +303,11 @@ public: /// __builtin_va_list, which is target-specific. virtual const char *getVAListDeclaration() const = 0; + /// isValidClobber - Returns whether the passed in string is + /// a valid clobber in an inline asm statement. This is used by + /// Sema. + bool isValidClobber(llvm::StringRef Name) const; + /// isValidGCCRegisterName - Returns whether the passed in string /// is a valid register name according to GCC. This is used by Sema for /// inline asm statements. |