-enable-dwarf-directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143326
91177308-0d34-0410-b5e6-
96231b3b80d8
MCSaveTempLabels(false),
MCUseLoc(true),
MCUseCFI(true),
MCSaveTempLabels(false),
MCUseLoc(true),
MCUseCFI(true),
- MCUseDwarfDirectory(true) {
+ MCUseDwarfDirectory(false) {
// Typically it will be subtargets that will adjust FloatABIType from Default
// to Soft or Hard.
if (UseSoftFloat)
// Typically it will be subtargets that will adjust FloatABIType from Default
// to Soft or Hard.
if (UseSoftFloat)
-; RUN: llc -mtriple x86_64-apple-darwin10.0.0 < %s | FileCheck %s
+; RUN: llc -enable-dwarf-directory -mtriple x86_64-apple-darwin10.0.0 < %s | FileCheck %s
; Radar 8884898
; CHECK: file 1 "/Users/manav/one/two" "simple.c"
; Radar 8884898
; CHECK: file 1 "/Users/manav/one/two" "simple.c"
cl::opt<bool> DisableCFI("disable-cfi", cl::Hidden,
cl::desc("Do not use .cfi_* directives"));
cl::opt<bool> DisableCFI("disable-cfi", cl::Hidden,
cl::desc("Do not use .cfi_* directives"));
-cl::opt<bool> DisableDwarfDirectory("disable-dwarf-directory", cl::Hidden,
- cl::desc("Do not use file directives with an explicit directory."));
+cl::opt<bool> EnableDwarfDirectory("enable-dwarf-directory", cl::Hidden,
+ cl::desc("Use .file directives with an explicit directory."));
static cl::opt<bool>
DisableRedZone("disable-red-zone",
static cl::opt<bool>
DisableRedZone("disable-red-zone",
if (DisableCFI)
Target.setMCUseCFI(false);
if (DisableCFI)
Target.setMCUseCFI(false);
- if (DisableDwarfDirectory)
- Target.setMCUseDwarfDirectory(false);
+ if (EnableDwarfDirectory)
+ Target.setMCUseDwarfDirectory(true);
// Disable .loc support for older OS X versions.
if (TheTriple.isMacOSX() &&
// Disable .loc support for older OS X versions.
if (TheTriple.isMacOSX() &&