diff options
author | Bob Wilson <bob.wilson@apple.com> | 2012-02-03 06:27:22 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2012-02-03 06:27:22 +0000 |
commit | 71fd6cc843719cab528a5df0899ad3d15cb9297f (patch) | |
tree | b99c1709e9fcc3c56d6f049f3aced058cbbecd3a /include/clang/Frontend/CodeGenOptions.h | |
parent | a83f4d2315dbeb3914868f1ccb8e74fb2ccdbb0c (diff) |
Fix -ftrap-function fallout from llvm r145714. <rdar://problem/10799325>
That llvm change removed the -trap-func backend option, so that using
-ftrap-function with clang would cause the backend to complain. Fix it
by adding the trap function name to the CodeGenOptions and passing it through
to the TargetOptions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149679 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend/CodeGenOptions.h')
-rw-r--r-- | include/clang/Frontend/CodeGenOptions.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/Frontend/CodeGenOptions.h b/include/clang/Frontend/CodeGenOptions.h index a0d260fb34..42b471986b 100644 --- a/include/clang/Frontend/CodeGenOptions.h +++ b/include/clang/Frontend/CodeGenOptions.h @@ -148,6 +148,10 @@ public: /// The name of the relocation model to use. std::string RelocationModel; + /// If not an empty string, trap intrinsics are lowered to calls to this + /// function instead of to trap instructions. + std::string TrapFuncName; + /// A list of command-line options to forward to the LLVM backend. std::vector<std::string> BackendOptions; |