Add hiddent command line option, as an debugging aid, to disable .loc use.
llvm-svn: 120575
This commit is contained in:
parent
c4fb38b821
commit
85df0ccafd
|
@ -96,6 +96,8 @@ FileType("filetype", cl::init(TargetMachine::CGFT_AssemblyFile),
|
||||||
cl::opt<bool> NoVerify("disable-verify", cl::Hidden,
|
cl::opt<bool> NoVerify("disable-verify", cl::Hidden,
|
||||||
cl::desc("Do not verify input module"));
|
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>
|
static cl::opt<bool>
|
||||||
DisableRedZone("disable-red-zone",
|
DisableRedZone("disable-red-zone",
|
||||||
|
@ -274,6 +276,9 @@ int main(int argc, char **argv) {
|
||||||
assert(target.get() && "Could not allocate target machine!");
|
assert(target.get() && "Could not allocate target machine!");
|
||||||
TargetMachine &Target = *target.get();
|
TargetMachine &Target = *target.get();
|
||||||
|
|
||||||
|
if (DisableDotLoc)
|
||||||
|
Target.setMCUseLoc(false);
|
||||||
|
|
||||||
// Figure out where we are going to send the output...
|
// Figure out where we are going to send the output...
|
||||||
OwningPtr<tool_output_file> Out
|
OwningPtr<tool_output_file> Out
|
||||||
(GetOutputStream(TheTarget->getName(), TheTriple.getOS(), argv[0]));
|
(GetOutputStream(TheTarget->getName(), TheTriple.getOS(), argv[0]));
|
||||||
|
|
Loading…
Reference in New Issue