diff options
Diffstat (limited to 'lib/Target/PIC16/PIC16DebugInfo.cpp')
-rw-r--r-- | lib/Target/PIC16/PIC16DebugInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/PIC16/PIC16DebugInfo.cpp b/lib/Target/PIC16/PIC16DebugInfo.cpp index 56359b3..bf635f0 100644 --- a/lib/Target/PIC16/PIC16DebugInfo.cpp +++ b/lib/Target/PIC16/PIC16DebugInfo.cpp @@ -327,7 +327,7 @@ void PIC16DbgInfo::EmitCompositeTypeDecls(Module &M) { // Structures and union declaration's debug info has llvm.dbg.composite // in its name. // FIXME: Checking and relying on llvm.dbg.composite name is not a good idea. - if(I->getName().find("llvm.dbg.composite") != std::string::npos) { + if(I->getNameStr().find("llvm.dbg.composite") != std::string::npos) { GlobalVariable *GV = cast<GlobalVariable >(I); DICompositeType CTy(GV); if (CTy.getTag() == dwarf::DW_TAG_union_type || |