[llvm-commits] CVS: llvm/tools/gccld/gccld.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Apr 24 14:14:00 PDT 2003
Changes in directory llvm/tools/gccld:
gccld.cpp updated: 1.28 -> 1.29
---
Log message:
Make sure to create a target data that matches the Module's target properties.
---
Diffs of the changes:
Index: llvm/tools/gccld/gccld.cpp
diff -u llvm/tools/gccld/gccld.cpp:1.28 llvm/tools/gccld/gccld.cpp:1.29
--- llvm/tools/gccld/gccld.cpp:1.28 Mon Apr 21 14:53:24 2003
+++ llvm/tools/gccld/gccld.cpp Thu Apr 24 14:13:02 2003
@@ -18,6 +18,7 @@
#include "llvm/PassManager.h"
#include "llvm/Bytecode/Reader.h"
#include "llvm/Bytecode/WriteBytecodePass.h"
+#include "llvm/Target/TargetData.h"
#include "llvm/Transforms/IPO.h"
#include "llvm/Transforms/Scalar.h"
#include "Support/CommandLine.h"
@@ -325,6 +326,9 @@
// a little bit. Do this now.
//
PassManager Passes;
+
+ // Add an appropriate TargetData instance for this module...
+ Passes.add(new TargetData("gccas", Composite.get()));
// Linking modules together can lead to duplicated global constants, only keep
// one copy of each constant...
More information about the llvm-commits
mailing list