From: Chris Lattner Date: Sat, 14 Jul 2001 06:08:51 +0000 (+0000) Subject: * The parent of a constant pool is a SymTabValue, not a value. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=644dc172f57559d3b4c75869e9f35b7781a9c0d8;p=oota-llvm.git * 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 --- diff --git a/include/llvm/Analysis/SlotCalculator.h b/include/llvm/Analysis/SlotCalculator.h index 99e40cbeb5f..d5ebe700f5e 100644 --- a/include/llvm/Analysis/SlotCalculator.h +++ b/include/llvm/Analysis/SlotCalculator.h @@ -13,6 +13,7 @@ #include "llvm/SymTabValue.h" #include #include +class Value; class SlotCalculator : public ModuleAnalyzer { const Module *TheModule; diff --git a/include/llvm/SlotCalculator.h b/include/llvm/SlotCalculator.h index 99e40cbeb5f..d5ebe700f5e 100644 --- a/include/llvm/SlotCalculator.h +++ b/include/llvm/SlotCalculator.h @@ -13,6 +13,7 @@ #include "llvm/SymTabValue.h" #include #include +class Value; class SlotCalculator : public ModuleAnalyzer { const Module *TheModule; diff --git a/lib/Analysis/ModuleAnalyzer.cpp b/lib/Analysis/ModuleAnalyzer.cpp index 0f028d12dde..7f509855d94 100644 --- a/lib/Analysis/ModuleAnalyzer.cpp +++ b/lib/Analysis/ModuleAnalyzer.cpp @@ -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; diff --git a/lib/Bytecode/Writer/SlotCalculator.h b/lib/Bytecode/Writer/SlotCalculator.h index 99e40cbeb5f..d5ebe700f5e 100644 --- a/lib/Bytecode/Writer/SlotCalculator.h +++ b/lib/Bytecode/Writer/SlotCalculator.h @@ -13,6 +13,7 @@ #include "llvm/SymTabValue.h" #include #include +class Value; class SlotCalculator : public ModuleAnalyzer { const Module *TheModule;