diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-10-31 01:06:02 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-10-31 01:06:02 +0000 |
commit | 4e478fed1b8021150b1f2cec4e670068b6abd135 (patch) | |
tree | d49c35643077b1dfe49f8776a38ec63f24a20a9e | |
parent | e7b05504faa86a5c0b80a62ddb60cbb0cf163d5d (diff) |
Switch new .file directive emission off by default, change llc's flag for it to
-enable-dwarf-directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143326 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/TargetMachine.cpp | 2 | ||||
-rw-r--r-- | test/CodeGen/X86/dbg-file-name.ll | 2 | ||||
-rw-r--r-- | tools/llc/llc.cpp | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/Target/TargetMachine.cpp b/lib/Target/TargetMachine.cpp index 3f58e84390..daac9243dd 100644 --- a/lib/Target/TargetMachine.cpp +++ b/lib/Target/TargetMachine.cpp @@ -198,7 +198,7 @@ TargetMachine::TargetMachine(const Target &T, 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) diff --git a/test/CodeGen/X86/dbg-file-name.ll b/test/CodeGen/X86/dbg-file-name.ll index 138ee264bf..70e0a5d1c4 100644 --- a/test/CodeGen/X86/dbg-file-name.ll +++ b/test/CodeGen/X86/dbg-file-name.ll @@ -1,4 +1,4 @@ -; 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" diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp index 4cb3cf1cb9..be6afec20a 100644 --- a/tools/llc/llc.cpp +++ b/tools/llc/llc.cpp @@ -133,8 +133,8 @@ cl::opt<bool> DisableDotLoc("disable-dot-loc", cl::Hidden, 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", @@ -319,8 +319,8 @@ int main(int argc, char **argv) { 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() && |