summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-03-08 18:25:48 +0000
committerDevang Patel <dpatel@apple.com>2010-03-08 18:25:48 +0000
commitfe28599f6f720ec90d50f07ae06086a5e1606496 (patch)
tree2432d34a7e55f999cc513fc718e49480adc9d7be /llvm/lib/CodeGen/MachineInstr.cpp
parentde4827dd340b77640b4cead98502148d8a5bcf70 (diff)
downloadbcm5719-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/MachineInstr.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineInstr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp
index e23670d1d1d..4c7cb8f3aae 100644
--- a/llvm/lib/CodeGen/MachineInstr.cpp
+++ b/llvm/lib/CodeGen/MachineInstr.cpp
@@ -1219,7 +1219,7 @@ void MachineInstr::print(raw_ostream &OS, const TargetMachine *TM) const {
DIScope Scope = DLT.getScope();
OS << " dbg:";
// Omit the directory, since it's usually long and uninteresting.
- if (!Scope.isNull())
+ if (Scope.Verify())
OS << Scope.getFilename();
else
OS << "<unknown>";
OpenPOWER on IntegriCloud