summaryrefslogtreecommitdiff
path: root/include/llvm/LLVMContext.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-07-20 21:42:28 +0000
committerDan Gohman <gohman@apple.com>2010-07-20 21:42:28 +0000
commit19538d1e9fb4f8198b94f8450c6fc43528d8b868 (patch)
tree80e4eb366ba74a1e80c1f102b65ed2e869d7542d /include/llvm/LLVMContext.h
parenta7f9563c018d33eee1586da8aa26a1faa58a3cea (diff)
downloadllvm-19538d1e9fb4f8198b94f8450c6fc43528d8b868.tar.gz
llvm-19538d1e9fb4f8198b94f8450c6fc43528d8b868.tar.bz2
llvm-19538d1e9fb4f8198b94f8450c6fc43528d8b868.tar.xz
Add support for remapping metadata kind IDs when reading in a
bitcode file, so that two bitcode files where the same metadata kind name happens to have been assigned a different ID can still be linked together. Eliminate the restriction that metadata kind IDs can't be 0. Change MD_dbg from 1 to 0, because we can now, and because it's less mysterious that way. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108939 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/LLVMContext.h')
-rw-r--r--include/llvm/LLVMContext.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/LLVMContext.h b/include/llvm/LLVMContext.h
index afae08b07d..96dbf77a5a 100644
--- a/include/llvm/LLVMContext.h
+++ b/include/llvm/LLVMContext.h
@@ -40,7 +40,7 @@ public:
// Pinned metadata names, which always have the same value. This is a
// compile-time performance optimization, not a correctness optimization.
enum {
- MD_dbg = 1 // "dbg" -> 1.
+ MD_dbg = 0 // "dbg"
};
/// getMDKindID - Return a unique non-zero ID for the specified metadata kind.