Disable .loc support on older darwin OSes.

llvm-svn: 120747
This commit is contained in:
Devang Patel 2010-12-02 23:03:57 +00:00
parent 5cd8475564
commit 6c814194d6
1 changed files with 12 additions and 0 deletions

View File

@ -278,6 +278,18 @@ int main(int argc, char **argv) {
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