diff options
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); | 

