mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
* The parent of a constant pool is a SymTabValue, not a value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dc4c3f2f5f
commit
644dc172f5
@ -13,6 +13,7 @@
|
||||
#include "llvm/SymTabValue.h"
|
||||
#include <vector>
|
||||
#include <map>
|
||||
class Value;
|
||||
|
||||
class SlotCalculator : public ModuleAnalyzer {
|
||||
const Module *TheModule;
|
||||
|
@ -13,6 +13,7 @@
|
||||
#include "llvm/SymTabValue.h"
|
||||
#include <vector>
|
||||
#include <map>
|
||||
class Value;
|
||||
|
||||
class SlotCalculator : public ModuleAnalyzer {
|
||||
const Module *TheModule;
|
||||
|
@ -99,7 +99,7 @@ bool ModuleAnalyzer::processConstPool(const ConstantPool &CP, bool isMethod) {
|
||||
}
|
||||
|
||||
if (!isMethod) {
|
||||
const Module *M = CP.getParent()->castModuleAsserting();
|
||||
const Module *M = CP.getParentV()->castModuleAsserting();
|
||||
// Process the method types after the constant pool...
|
||||
for (Module::const_iterator I = M->begin(); I != M->end(); ++I) {
|
||||
if (handleType(TypeSet, (*I)->getType())) return true;
|
||||
|
@ -13,6 +13,7 @@
|
||||
#include "llvm/SymTabValue.h"
|
||||
#include <vector>
|
||||
#include <map>
|
||||
class Value;
|
||||
|
||||
class SlotCalculator : public ModuleAnalyzer {
|
||||
const Module *TheModule;
|
||||
|
Loading…
Reference in New Issue
Block a user