mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-06 12:51:30 +00:00
Final step in the metadata API restructuring: move the
getMDKindID/getMDKindNames methods to LLVMContext (and add convenience methods to Module), eliminating MetadataContext. Move the state that it maintains out to LLVMContext. llvm-svn: 92259
This commit is contained in:
1 parent
9330b2f7ec
commit
a0566979b7
19 files changed
+143
-220
No files matched your search
@@ -17,7 +17,6 @@
|
||||
#include "llvm/DerivedTypes.h"
|
||||
#include "llvm/InlineAsm.h"
|
||||
#include "llvm/IntrinsicInst.h"
|
||||
#include "llvm/LLVMContext.h"
|
||||
#include "llvm/Module.h"
|
||||
#include "llvm/Operator.h"
|
||||
#include "llvm/AutoUpgrade.h"
|
||||
@@ -840,7 +839,7 @@ bool BitcodeReader::ParseMetadata() {
|
||||
for (unsigned i = 1; i != RecordLength; ++i)
|
||||
Name[i-1] = Record[i];
|
||||
|
||||
unsigned NewKind = Context.getMetadata().getMDKindID(Name.str());
|
||||
unsigned NewKind = TheModule->getMDKindID(Name.str());
|
||||
assert(Kind == NewKind &&
|
||||
"FIXME: Unable to handle custom metadata mismatch!");(void)NewKind;
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user