diff options
author | Devang Patel <dpatel@apple.com> | 2010-03-08 19:20:38 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-03-08 19:20:38 +0000 |
commit | bc97f6b7578e70ec48533f8de15d64479e2ad829 (patch) | |
tree | e447f334d2c42aef7c8b1f10ca4f72698d3a88c8 /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | adccbca23f52b36678b35839dfee5ed549b92602 (diff) | |
download | bcm5719-llvm-bc97f6b7578e70ec48533f8de15d64479e2ad829.tar.gz bcm5719-llvm-bc97f6b7578e70ec48533f8de15d64479e2ad829.zip |
Revert r97947.
llvm-svn: 97963
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index c0d92ffbbbc..bd2b1b61971 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -335,7 +335,7 @@ static void EmitComments(const MachineInstr &MI, raw_ostream &CommentOS) { // Print source line info. DIScope Scope = DLT.getScope(); // Omit the directory, because it's likely to be long and uninteresting. - if (Scope.Verify()) + if (!Scope.isNull()) CommentOS << Scope.getFilename(); else CommentOS << "<unknown>"; @@ -1287,7 +1287,7 @@ void AsmPrinter::processDebugLoc(const MachineInstr *MI, if (DL.isUnknown()) return; DILocation CurDLT = MF->getDILocation(DL); - if (!CurDLT.getScope().Verify()) + if (CurDLT.getScope().isNull()) return; if (!BeforePrintingInsn) { |