summaryrefslogtreecommitdiff
path: root/lib/Bitcode/Writer/ValueEnumerator.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-08-24 02:24:03 +0000
committerDan Gohman <gohman@apple.com>2010-08-24 02:24:03 +0000
commit309b3af547a60bedd74daa2a94ebd3d3ed5f06e9 (patch)
tree1ed0e391d9675ac9427569fa9e34d34146789144 /lib/Bitcode/Writer/ValueEnumerator.h
parent78aeae2d7b771e33c5ff5218802cd2e9dab13df0 (diff)
downloadllvm-309b3af547a60bedd74daa2a94ebd3d3ed5f06e9.tar.gz
llvm-309b3af547a60bedd74daa2a94ebd3d3ed5f06e9.tar.bz2
llvm-309b3af547a60bedd74daa2a94ebd3d3ed5f06e9.tar.xz
Extend function-local metadata to be usable as attachments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111895 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Writer/ValueEnumerator.h')
-rw-r--r--lib/Bitcode/Writer/ValueEnumerator.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Bitcode/Writer/ValueEnumerator.h b/lib/Bitcode/Writer/ValueEnumerator.h
index 2453b7263c..cd1d2371b7 100644
--- a/lib/Bitcode/Writer/ValueEnumerator.h
+++ b/lib/Bitcode/Writer/ValueEnumerator.h
@@ -72,6 +72,11 @@ private:
/// When a function is incorporated, this is the size of the Values list
/// before incorporation.
unsigned NumModuleValues;
+
+ /// When a function is incorporated, this is the size of the MDValues list
+ /// before incorporation.
+ unsigned NumModuleMDValues;
+
unsigned FirstFuncConstantID;
unsigned FirstInstID;
@@ -132,7 +137,9 @@ public:
private:
void OptimizeConstants(unsigned CstStart, unsigned CstEnd);
+ void EnumerateMDNodeOperands(const MDNode *N);
void EnumerateMetadata(const Value *MD);
+ void EnumerateFunctionLocalMetadata(const MDNode *N);
void EnumerateNamedMDNode(const NamedMDNode *NMD);
void EnumerateValue(const Value *V);
void EnumerateType(const Type *T);