mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
CodeGen: Enable DWARF emission for MS ABI targets
This is experimental, just barely enough to get things to not immediately combust. A note for those who are curious: Only lld can successfully link the object files, other linkers truncate the section names making the debug sections illegible to debuggers. Even with this in mind, we believe we are having trouble with SECREL relocations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221245 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -222,14 +222,12 @@ bool AsmPrinter::doInitialization(Module &M) {
|
||||
}
|
||||
|
||||
if (MAI->doesSupportDebugInformation()) {
|
||||
if (Triple(TM.getTargetTriple()).isKnownWindowsMSVCEnvironment()) {
|
||||
if (Triple(TM.getTargetTriple()).isKnownWindowsMSVCEnvironment())
|
||||
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));
|
||||
}
|
||||
|
||||
EHStreamer *ES = nullptr;
|
||||
|
Reference in New Issue
Block a user