diff options
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index d621108..928252a 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp @@ -649,7 +649,6 @@ void CodeViewDebug::endModule() { switchToDebugSectionForSymbol(nullptr); MCSymbol *CompilerInfo = beginCVSubsection(DebugSubsectionKind::Symbols); - emitObjName(); emitCompilerInformation(); endCVSubsection(CompilerInfo); @@ -785,29 +784,6 @@ void CodeViewDebug::emitTypeGlobalHashes() { } } -void CodeViewDebug::emitObjName() { - MCSymbol *CompilerEnd = beginSymbolRecord(SymbolKind::S_OBJNAME); - - StringRef PathRef(Asm->TM.Options.ObjectFilenameForDebug); - llvm::SmallString<256> PathStore(PathRef); - - if (PathRef.empty() || PathRef == "-") { - // Don't emit the filename if we're writing to stdout or to /dev/null. - PathRef = {}; - } else { - llvm::sys::path::remove_dots(PathStore, /*remove_dot_dot=*/true); - PathRef = PathStore; - } - - OS.AddComment("Signature"); - OS.emitIntValue(0, 4); - - OS.AddComment("Object name"); - emitNullTerminatedSymbolName(OS, PathRef); - - endSymbolRecord(CompilerEnd); -} - namespace { struct Version { int Part[4]; |