diff options
author | John McCall <rjmccall@apple.com> | 2010-03-06 00:35:14 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-03-06 00:35:14 +0000 |
commit | beec5a080f57929bd3ebb29d8da25c43ee67aa6d (patch) | |
tree | 2dc6ccfb14f11969c79159b57cd0b138b8ce1164 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 381268e629041da9add8736ddbfe87b7bb420f38 (diff) | |
download | bcm5719-llvm-beec5a080f57929bd3ebb29d8da25c43ee67aa6d.tar.gz bcm5719-llvm-beec5a080f57929bd3ebb29d8da25c43ee67aa6d.zip |
Implement __builtin_dwarf_sp_column for i386 (Darwin and not), x86-64 (all),
and ARM. Implement __builtin_init_dwarf_reg_size_table for i386 (both) and
x86-64 (all).
llvm-svn: 97859
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index e6e9b1a595e..f664b76783a 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -33,6 +33,7 @@ #include "llvm/Module.h" #include "llvm/Intrinsics.h" #include "llvm/LLVMContext.h" +#include "llvm/ADT/Triple.h" #include "llvm/Target/TargetData.h" #include "llvm/Support/ErrorHandling.h" using namespace clang; @@ -89,6 +90,10 @@ void CodeGenModule::Release() { EmitLLVMUsed(); } +bool CodeGenModule::isTargetDarwin() const { + return getContext().Target.getTriple().getOS() == llvm::Triple::Darwin; +} + /// ErrorUnsupported - Print out an error that codegen doesn't support the /// specified stmt yet. void CodeGenModule::ErrorUnsupported(const Stmt *S, const char *Type, |