diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2014-01-29 06:05:38 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2014-01-29 06:05:38 +0000 |
commit | b366f01f836d1dc61a449c6d4656e6b3117142fb (patch) | |
tree | 2a197a36a4fa7e875bb2551ee0c8fb360ea8a391 /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | 619581c3c95baac7b493b06e8149d1085d48a23f (diff) | |
download | bcm5719-llvm-b366f01f836d1dc61a449c6d4656e6b3117142fb.tar.gz bcm5719-llvm-b366f01f836d1dc61a449c6d4656e6b3117142fb.zip |
Revert r200340, "Add line table debug info to COFF files when using a win32 triple."
It was incompatible with --target=i686-win32.
llvm-svn: 200375
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index c5726633d2a..fbee17f563a 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -50,13 +50,11 @@ #include "llvm/Target/TargetRegisterInfo.h" #include "llvm/Target/TargetSubtargetInfo.h" #include "llvm/Transforms/Utils/GlobalStatus.h" -#include "WinCodeViewLineTables.h" using namespace llvm; static const char *const DWARFGroupName = "DWARF Emission"; -static const char *const DbgTimerName = "Debug Info Emission"; +static const char *const DbgTimerName = "DWARF Debug Writer"; static const char *const EHTimerName = "DWARF Exception Writer"; -static const char *const CodeViewLineTablesGroupName = "CodeView Line Tables"; STATISTIC(EmittedInsts, "Number of machine instrs printed"); @@ -204,14 +202,8 @@ bool AsmPrinter::doInitialization(Module &M) { } if (MAI->doesSupportDebugInformation()) { - if (Triple(TM.getTargetTriple()).getOS() == Triple::Win32) { - Handlers.push_back(HandlerInfo(new WinCodeViewLineTables(this), - DbgTimerName, - CodeViewLineTablesGroupName)); - } else { - DD = new DwarfDebug(this, &M); - Handlers.push_back(HandlerInfo(DD, DbgTimerName, DWARFGroupName)); - } + DD = new DwarfDebug(this, &M); + Handlers.push_back(HandlerInfo(DD, DbgTimerName, DWARFGroupName)); } DwarfException *DE = 0; |