diff options
author | Devang Patel <dpatel@apple.com> | 2010-03-08 18:25:48 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-03-08 18:25:48 +0000 |
commit | fe28599f6f720ec90d50f07ae06086a5e1606496 (patch) | |
tree | 2432d34a7e55f999cc513fc718e49480adc9d7be /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | de4827dd340b77640b4cead98502148d8a5bcf70 (diff) | |
download | bcm5719-llvm-fe28599f6f720ec90d50f07ae06086a5e1606496.tar.gz bcm5719-llvm-fe28599f6f720ec90d50f07ae06086a5e1606496.zip |
Avoid using DIDescriptor.isNull().
This is a first step towards eliminating unncessary constructor checks in light weight DIDescriptor wrappers.
llvm-svn: 97947
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 bd2b1b61971..c0d92ffbbbc 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.isNull()) + if (Scope.Verify()) 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().isNull()) + if (!CurDLT.getScope().Verify()) return; if (!BeforePrintingInsn) { |