summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2006-05-03 01:29:57 +0000
committerOwen Anderson <resistor@mac.com>2006-05-03 01:29:57 +0000
commit20a631fde715280ecab9ae997ba7fa79434b4fe2 (patch)
tree0d724c5315fd81f33b7b09830661330efe099f9b /llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp
parent37c39b9c62c523ea324d635e1760f91754b0a371 (diff)
downloadbcm5719-llvm-20a631fde715280ecab9ae997ba7fa79434b4fe2.tar.gz
bcm5719-llvm-20a631fde715280ecab9ae997ba7fa79434b4fe2.zip
Refactor TargetMachine, pushing handling of TargetData into the target-specific subclasses. This has one caller-visible change: getTargetData() now returns a pointer instead of a reference.
This fixes PR 759. llvm-svn: 28074
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp b/llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp
index c17e4d40411..63d88254484 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp
+++ b/llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp
@@ -71,7 +71,7 @@ Interpreter::Interpreter(Module *M, bool isLittleEndian, bool isLongPointer)
isLongPointer ? 8 : 4) {
memset(&ExitValue, 0, sizeof(ExitValue));
- setTargetData(TD);
+ setTargetData(&TD);
// Initialize the "backend"
initializeExecutionEngine();
initializeExternalFunctions();
OpenPOWER on IntegriCloud