From 20a631fde715280ecab9ae997ba7fa79434b4fe2 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Wed, 3 May 2006 01:29:57 +0000 Subject: 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 --- llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/ExecutionEngine/Interpreter') 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(); -- cgit v1.2.3