diff options
| author | Eric Christopher <echristo@apple.com> | 2012-04-02 17:58:52 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@apple.com> | 2012-04-02 17:58:52 +0000 |
| commit | ad9fe8955a0497db760703b893f31324a627e545 (patch) | |
| tree | d782d890f2e785ea72080fea6a1d759af33c4ee7 /llvm/lib/CodeGen | |
| parent | f62ffeca886f10e555d0de2f807e3c2c7e2f55c8 (diff) | |
| download | bcm5719-llvm-ad9fe8955a0497db760703b893f31324a627e545.tar.gz bcm5719-llvm-ad9fe8955a0497db760703b893f31324a627e545.zip | |
Turn on the accelerator tables for Darwin.
llvm-svn: 153880
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 6f15bfeb2b2..2490172bd2f 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -19,6 +19,7 @@ #include "llvm/Constants.h" #include "llvm/Module.h" #include "llvm/Instructions.h" +#include "llvm/ADT/Triple.h" #include "llvm/CodeGen/MachineFunction.h" #include "llvm/CodeGen/MachineModuleInfo.h" #include "llvm/MC/MCAsmInfo.h" @@ -133,6 +134,11 @@ DwarfDebug::DwarfDebug(AsmPrinter *A, Module *M) DwarfStrSectionSym = TextSectionSym = 0; DwarfDebugRangeSectionSym = DwarfDebugLocSectionSym = 0; FunctionBeginSym = FunctionEndSym = 0; + + // Turn on accelerator tables for Darwin. + if (Triple(M->getTargetTriple()).isOSDarwin()) + DwarfAccelTables = true; + { NamedRegionTimer T(DbgTimerName, DWARFGroupName, TimePassesIsEnabled); beginModule(M); |

