[llvm-commits] [llvm] r120747 - /llvm/trunk/tools/llc/llc.cpp
Devang Patel
dpatel at apple.com
Thu Dec 2 15:03:57 PST 2010
Author: dpatel
Date: Thu Dec 2 17:03:57 2010
New Revision: 120747
URL: http://llvm.org/viewvc/llvm-project?rev=120747&view=rev
Log:
Disable .loc support on older darwin OSes.
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=120747&r1=120746&r2=120747&view=diff
==============================================================================
--- llvm/trunk/tools/llc/llc.cpp (original)
+++ llvm/trunk/tools/llc/llc.cpp Thu Dec 2 17:03:57 2010
@@ -278,6 +278,18 @@
if (DisableDotLoc)
Target.setMCUseLoc(false);
+ if (TheTriple.getOS() == Triple::Darwin) {
+ switch (TheTriple.getDarwinMajorNumber()) {
+ case 7:
+ case 8:
+ case 9:
+ // disable .loc support for older darwin OS.
+ Target.setMCUseLoc(false);
+ break;
+ default:
+ break;
+ }
+ }
// Figure out where we are going to send the output...
OwningPtr<tool_output_file> Out
More information about the llvm-commits
mailing list