aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/Constants.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-07 22:49:37 +0000
committerChris Lattner <sabre@nondot.org>2002-04-07 22:49:37 +0000
commitb579400cd72f274607f4964a9649ea4d38e04c46 (patch)
treeaa268b94603078ae47fb736068a423411adbdaee /lib/VMCore/Constants.cpp
parent94202988a83f43907a7d9cc04b047052122a5dff (diff)
downloadexternal_llvm-b579400cd72f274607f4964a9649ea4d38e04c46.tar.gz
external_llvm-b579400cd72f274607f4964a9649ea4d38e04c46.tar.bz2
external_llvm-b579400cd72f274607f4964a9649ea4d38e04c46.zip
* Move include/llvm/Analysis/SlotCalculator.h to include/llvm/SlotCalculator.h
because the slot calculator is already part of the VMCore library. * Rename incorporateMethod and purgeMethod to *Function git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2154 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Constants.cpp')
-rw-r--r--lib/VMCore/Constants.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp
index b73886cf1b..f3f3f49bf6 100644
--- a/lib/VMCore/Constants.cpp
+++ b/lib/VMCore/Constants.cpp
@@ -10,7 +10,7 @@
#include "llvm/SymbolTable.h"
#include "llvm/GlobalValue.h"
#include "llvm/Module.h"
-#include "llvm/Analysis/SlotCalculator.h"
+#include "llvm/SlotCalculator.h"
#include "Support/StringExtras.h"
#include <algorithm>
@@ -259,6 +259,7 @@ std::string ConstantPointerRef::getStrValue() const {
const GlobalValue *V = getValue();
if (V->hasName()) return "%" + V->getName();
+ // FIXME: This is a gross hack.
SlotCalculator *Table = new SlotCalculator(V->getParent(), true);
int Slot = Table->getValSlot(V);
delete Table;