* 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:
Chris Lattner 2001-07-14 06:08:51 +00:00
parent dc4c3f2f5f
commit 644dc172f5
4 changed files with 4 additions and 1 deletions

View File

@ -13,6 +13,7 @@
#include "llvm/SymTabValue.h"
#include <vector>
#include <map>
class Value;
class SlotCalculator : public ModuleAnalyzer {
const Module *TheModule;

View File

@ -13,6 +13,7 @@
#include "llvm/SymTabValue.h"
#include <vector>
#include <map>
class Value;
class SlotCalculator : public ModuleAnalyzer {
const Module *TheModule;

View File

@ -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;

View File

@ -13,6 +13,7 @@
#include "llvm/SymTabValue.h"
#include <vector>
#include <map>
class Value;
class SlotCalculator : public ModuleAnalyzer {
const Module *TheModule;