From 75a08e6aac8e9e7bb24d34234b8bfaa512638b06 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Wed, 1 Dec 2010 15:36:49 +0000 Subject: Add hiddent command line option, as an debugging aid, to disable .loc use. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120575 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llc/llc.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools/llc') diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp index 180e13c7f9..d34a3ed745 100644 --- a/tools/llc/llc.cpp +++ b/tools/llc/llc.cpp @@ -96,6 +96,8 @@ FileType("filetype", cl::init(TargetMachine::CGFT_AssemblyFile), cl::opt NoVerify("disable-verify", cl::Hidden, cl::desc("Do not verify input module")); +cl::opt DisableDotLoc("disable-dot-loc", cl::Hidden, + cl::desc("Do not use .loc entries")); static cl::opt DisableRedZone("disable-red-zone", @@ -274,6 +276,9 @@ int main(int argc, char **argv) { 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 Out (GetOutputStream(TheTarget->getName(), TheTriple.getOS(), argv[0])); -- cgit v1.2.3