mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Derive MDNode from MetadataBase instead of Constant. Emit MDNodes into METADATA_BLOCK in bitcode file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76834 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -195,7 +195,6 @@ static const char *GetCodeName(unsigned CodeID, unsigned BlockID,
|
||||
case bitc::CST_CODE_CE_CMP: return "CE_CMP";
|
||||
case bitc::CST_CODE_INLINEASM: return "INLINEASM";
|
||||
case bitc::CST_CODE_CE_SHUFVEC_EX: return "CE_SHUFVEC_EX";
|
||||
case bitc::CST_CODE_MDNODE: return "MDNODE";
|
||||
}
|
||||
case bitc::FUNCTION_BLOCK_ID:
|
||||
switch (CodeID) {
|
||||
@@ -248,6 +247,7 @@ static const char *GetCodeName(unsigned CodeID, unsigned BlockID,
|
||||
switch(CodeID) {
|
||||
default:return 0;
|
||||
case bitc::METADATA_STRING: return "MDSTRING";
|
||||
case bitc::METADATA_NODE: return "MDNODE";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user