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 | ac4d13c0cc78a3b28a8af8001e4da6b18fa9029d (patch) | |
tree | 3a9198cde72f7a29944acf9f0ac21e9760d4b03d /lib/CodeGen/CGDebugInfo.h | |
parent | 28233428da1ebec20c893d6297ae3191318940dd (diff) |
Reapply 109303.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109507 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.h')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/CodeGen/CGDebugInfo.h b/lib/CodeGen/CGDebugInfo.h index fdfd3dca57..fc296acf45 100644 --- a/lib/CodeGen/CGDebugInfo.h +++ b/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(); |