X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FIR%2FDebugLoc.cpp;h=e8bdccebae96d5445abd9fd103d61466e14055c5;hb=d047a9df7d4b2934d6a9c22528b668d6100c0f87;hp=43360d38662cffbc1c83af68c328b5f9149fa1b5;hpb=6a48f1c27136a77159892de4ae4a28d69ab970af;p=oota-llvm.git diff --git a/lib/IR/DebugLoc.cpp b/lib/IR/DebugLoc.cpp index 43360d38662..e8bdccebae9 100644 --- a/lib/IR/DebugLoc.cpp +++ b/lib/IR/DebugLoc.cpp @@ -76,7 +76,7 @@ MDNode *DebugLoc::getScopeNode(const LLVMContext &Ctx) const { return getScope(Ctx); } -DebugLoc DebugLoc::getFnDebugLoc(const LLVMContext &Ctx) { +DebugLoc DebugLoc::getFnDebugLoc(const LLVMContext &Ctx) const { const MDNode *Scope = getScopeNode(Ctx); DISubprogram SP = getDISubprogram(Scope); if (SP.isSubprogram()) {