diff options
author | Devang Patel <dpatel@apple.com> | 2010-07-27 15:17:16 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-07-27 15:17:16 +0000 |
commit | 6014edd1178f32f07e05e2b825743b610eae4ebe (patch) | |
tree | 1b460fe04037d2e4f52056631154d97e9275a3ed /clang/lib/CodeGen/CGDebugInfo.h | |
parent | 7b0a5fd2a5058598f9688f83ce5a8a4d453cb1b0 (diff) | |
download | bcm5719-llvm-6014edd1178f32f07e05e2b825743b610eae4ebe.tar.gz bcm5719-llvm-6014edd1178f32f07e05e2b825743b610eae4ebe.zip |
Reapply 109303.
llvm-svn: 109507
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.h')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h index fdfd3dca571..fc296acf453 100644 --- a/clang/lib/CodeGen/CGDebugInfo.h +++ b/clang/lib/CodeGen/CGDebugInfo.h @@ -70,6 +70,7 @@ class CGDebugInfo { /// DebugInfoNames - This is a storage for names that are /// constructed on demand. For example, C++ destructors, C++ operators etc.. llvm::BumpPtrAllocator DebugInfoNames; + llvm::StringRef CWDName; llvm::DenseMap<const char *, llvm::WeakVH> DIFileCache; llvm::DenseMap<const FunctionDecl *, llvm::WeakVH> SPCache; @@ -198,6 +199,13 @@ private: llvm::DIDescriptor getContextDescriptor(const Decl *Decl, llvm::DIDescriptor &CU); + /// getCompDirname - AT_comp_dir is empty if filename is absulte otherwise + /// it points to compilation directory. + llvm::StringRef getCompDirname(llvm::StringRef Filename); + + /// getCurrentDirname - Return current directory name. + llvm::StringRef getCurrentDirname(); + /// CreateCompileUnit - Create new compile unit. void CreateCompileUnit(); |