mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
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
This commit is contained in:
parent
e7b05504fa
commit
4e478fed1b
@ -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)
|
||||
|
@ -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"
|
||||
|
@ -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() &&
|
||||
|
Loading…
Reference in New Issue
Block a user