aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-11-10 22:19:21 +0000
committerDevang Patel <dpatel@apple.com>2010-11-10 22:19:21 +0000
commit62367045a493f9bffa433e34b68fc7dda96e1edd (patch)
tree28a6c4fa43663494ae9491495c1fce8f66d9093f /include/llvm/Analysis
parent4beee3d06bfebe3f3382893fcebc71d1aa3f290e (diff)
downloadexternal_llvm-62367045a493f9bffa433e34b68fc7dda96e1edd.zip
external_llvm-62367045a493f9bffa433e34b68fc7dda96e1edd.tar.gz
external_llvm-62367045a493f9bffa433e34b68fc7dda96e1edd.tar.bz2
Take care of special characters while creating named MDNode name to hold function specific local variable's info.
This fixes radar 8653152. I am checking in testcase as a separate check-in. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118726 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis')
-rw-r--r--include/llvm/Analysis/DebugInfo.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/Analysis/DebugInfo.h b/include/llvm/Analysis/DebugInfo.h
index f0054fb..af683af 100644
--- a/include/llvm/Analysis/DebugInfo.h
+++ b/include/llvm/Analysis/DebugInfo.h
@@ -33,6 +33,7 @@ namespace llvm {
class DbgDeclareInst;
class Instruction;
class MDNode;
+ class NamedMDNode;
class LLVMContext;
class raw_ostream;
@@ -835,6 +836,14 @@ namespace llvm {
/// getDICompositeType - Find underlying composite type.
DICompositeType getDICompositeType(DIType T);
+ /// getOrInsertFnSpecificMDNode - Return a NameMDNode that is suitable
+ /// to hold function specific information.
+ NamedMDNode *getOrInsertFnSpecificMDNode(Module &M, StringRef Name);
+
+ /// getFnSpecificMDNode - Return a NameMDNode, if available, that is
+ /// suitable to hold function specific information.
+ NamedMDNode *getFnSpecificMDNode(const Module &M, StringRef Name);
+
class DebugInfoFinder {
public:
/// processModule - Process entire module and collect debug info