diff options
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index e7033969798..1827fc980c3 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -77,6 +77,11 @@ CGDebugInfo::~CGDebugInfo() delete SubprogramAnchor; } +void CGDebugInfo::setLocation(SourceLocation loc) +{ + SourceManager &SM = M->getContext().getSourceManager(); + CurLoc = SM.getLogicalLoc(loc); +} /// getCastValueFor - Return a llvm representation for a given debug information /// descriptor cast to an empty struct pointer. @@ -339,6 +344,8 @@ CGDebugInfo::getOrCreateFunctionType(QualType type, llvm::CompileUnitDesc *Unit) llvm::TypeDesc * CGDebugInfo::getOrCreateType(QualType type, llvm::CompileUnitDesc *Unit) { + // TODO: Re-enable once we can generate all types + return 0; if (type.isNull()) return NULL; |