aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Analysis/SlotCalculator.h1
-rw-r--r--include/llvm/SlotCalculator.h1
-rw-r--r--lib/Analysis/ModuleAnalyzer.cpp2
-rw-r--r--lib/Bytecode/Writer/SlotCalculator.h1
4 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/Analysis/SlotCalculator.h b/include/llvm/Analysis/SlotCalculator.h
index 99e40cbeb5..d5ebe700f5 100644
--- a/include/llvm/Analysis/SlotCalculator.h
+++ b/include/llvm/Analysis/SlotCalculator.h
@@ -13,6 +13,7 @@
#include "llvm/SymTabValue.h"
#include <vector>
#include <map>
+class Value;
class SlotCalculator : public ModuleAnalyzer {
const Module *TheModule;
diff --git a/include/llvm/SlotCalculator.h b/include/llvm/SlotCalculator.h
index 99e40cbeb5..d5ebe700f5 100644
--- a/include/llvm/SlotCalculator.h
+++ b/include/llvm/SlotCalculator.h
@@ -13,6 +13,7 @@
#include "llvm/SymTabValue.h"
#include <vector>
#include <map>
+class Value;
class SlotCalculator : public ModuleAnalyzer {
const Module *TheModule;
diff --git a/lib/Analysis/ModuleAnalyzer.cpp b/lib/Analysis/ModuleAnalyzer.cpp
index 0f028d12dd..7f509855d9 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 99e40cbeb5..d5ebe700f5 100644
--- a/lib/Bytecode/Writer/SlotCalculator.h
+++ b/lib/Bytecode/Writer/SlotCalculator.h
@@ -13,6 +13,7 @@
#include "llvm/SymTabValue.h"
#include <vector>
#include <map>
+class Value;
class SlotCalculator : public ModuleAnalyzer {
const Module *TheModule;