* The parent of a constant pool is a SymTabValue, not a value.
authorChris Lattner <sabre@nondot.org>
Sat, 14 Jul 2001 06:08:51 +0000 (06:08 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 14 Jul 2001 06:08:51 +0000 (06:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/SlotCalculator.h
include/llvm/SlotCalculator.h
lib/Analysis/ModuleAnalyzer.cpp
lib/Bytecode/Writer/SlotCalculator.h

index 99e40cbeb5fe6ec19b09852fc670bdb707acadef..d5ebe700f5ef89dbfe0c0067aa2b38c6fc26d200 100644 (file)
@@ -13,6 +13,7 @@
 #include "llvm/SymTabValue.h"
 #include <vector>
 #include <map>
+class Value;
 
 class SlotCalculator : public ModuleAnalyzer {
   const Module *TheModule;
index 99e40cbeb5fe6ec19b09852fc670bdb707acadef..d5ebe700f5ef89dbfe0c0067aa2b38c6fc26d200 100644 (file)
@@ -13,6 +13,7 @@
 #include "llvm/SymTabValue.h"
 #include <vector>
 #include <map>
+class Value;
 
 class SlotCalculator : public ModuleAnalyzer {
   const Module *TheModule;
index 0f028d12ddeaf508295658cab29594e7c544d5f0..7f509855d94c286e4f07cf64506e979f664cfadb 100644 (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;
index 99e40cbeb5fe6ec19b09852fc670bdb707acadef..d5ebe700f5ef89dbfe0c0067aa2b38c6fc26d200 100644 (file)
@@ -13,6 +13,7 @@
 #include "llvm/SymTabValue.h"
 #include <vector>
 #include <map>
+class Value;
 
 class SlotCalculator : public ModuleAnalyzer {
   const Module *TheModule;