mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 03:29:40 +00:00
metadata can't be a global var initializer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92330 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6e6b1805da
commit
51ea55f0ec
@ -605,10 +605,6 @@ void SlotTracker::processModule() {
|
|||||||
E = TheModule->global_end(); I != E; ++I) {
|
E = TheModule->global_end(); I != E; ++I) {
|
||||||
if (!I->hasName())
|
if (!I->hasName())
|
||||||
CreateModuleSlot(I);
|
CreateModuleSlot(I);
|
||||||
if (I->hasInitializer()) {
|
|
||||||
if (MDNode *N = dyn_cast<MDNode>(I->getInitializer()))
|
|
||||||
CreateMetadataSlot(N);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add metadata used by named metadata.
|
// Add metadata used by named metadata.
|
||||||
|
Loading…
Reference in New Issue
Block a user