[llvm-commits] [llvm] r120575 - /llvm/trunk/tools/llc/llc.cpp
Devang Patel
dpatel at apple.com
Wed Dec 1 07:36:49 PST 2010
Author: dpatel
Date: Wed Dec 1 09:36:49 2010
New Revision: 120575
URL: http://llvm.org/viewvc/llvm-project?rev=120575&view=rev
Log:
Add hiddent command line option, as an debugging aid, to disable .loc use.
Modified:
llvm/trunk/tools/llc/llc.cpp
Modified: llvm/trunk/tools/llc/llc.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llc/llc.cpp?rev=120575&r1=120574&r2=120575&view=diff
==============================================================================
--- llvm/trunk/tools/llc/llc.cpp (original)
+++ llvm/trunk/tools/llc/llc.cpp Wed Dec 1 09:36:49 2010
@@ -96,6 +96,8 @@
cl::opt<bool> NoVerify("disable-verify", cl::Hidden,
cl::desc("Do not verify input module"));
+cl::opt<bool> DisableDotLoc("disable-dot-loc", cl::Hidden,
+ cl::desc("Do not use .loc entries"));
static cl::opt<bool>
DisableRedZone("disable-red-zone",
@@ -274,6 +276,9 @@
assert(target.get() && "Could not allocate target machine!");
TargetMachine &Target = *target.get();
+ if (DisableDotLoc)
+ Target.setMCUseLoc(false);
+
// Figure out where we are going to send the output...
OwningPtr<tool_output_file> Out
(GetOutputStream(TheTarget->getName(), TheTriple.getOS(), argv[0]));
More information about the llvm-commits
mailing list