diff options
author | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-06-03 16:27:49 +0000 |
---|---|---|
committer | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-06-03 16:27:49 +0000 |
commit | 3fc7e532aa18b6ee8958c53bc053b781f83f5833 (patch) | |
tree | f64731ab48ae8072ac9a6d43d547b7dd8c33b8f8 /lib/Target/PIC16/PIC16DebugInfo.h | |
parent | 4734ed8b876b3d3d60df5e03b3b45164f0a1c5c7 (diff) | |
download | llvm-3fc7e532aa18b6ee8958c53bc053b781f83f5833.tar.gz llvm-3fc7e532aa18b6ee8958c53bc053b781f83f5833.tar.bz2 llvm-3fc7e532aa18b6ee8958c53bc053b781f83f5833.tar.xz |
Emit file directives correctly in case of a .bc is generated by llvm-ld after linking in several .bc files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72781 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PIC16/PIC16DebugInfo.h')
-rw-r--r-- | lib/Target/PIC16/PIC16DebugInfo.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Target/PIC16/PIC16DebugInfo.h b/lib/Target/PIC16/PIC16DebugInfo.h index 96b23da403..be3939336b 100644 --- a/lib/Target/PIC16/PIC16DebugInfo.h +++ b/lib/Target/PIC16/PIC16DebugInfo.h @@ -94,8 +94,11 @@ namespace llvm { std::map <std::string, DISubprogram *> FunctNameMap; raw_ostream &O; const TargetAsmInfo *TAI; + std::string CurFile; public: - PIC16DbgInfo(raw_ostream &o, const TargetAsmInfo *T) : O(o), TAI(T) {} + PIC16DbgInfo(raw_ostream &o, const TargetAsmInfo *T) : O(o), TAI(T) { + CurFile = ""; + } ~PIC16DbgInfo(); void PopulateDebugInfo(DIType Ty, unsigned short &TypeNo, bool &HasAux, int Aux[], std::string &TypeName); @@ -109,6 +112,8 @@ namespace llvm { inline void EmitSymbol(std::string Name, int Class); void EmitVarDebugInfo(Module &M); void EmitFileDirective(Module &M); + void EmitFileDirective(const Function *F); + void EmitEOF(); }; } // end namespace llvm; #endif |