projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f004f9a
)
Convert TargetData to be an ImmutablePass
author
Chris Lattner
<sabre@nondot.org>
Wed, 25 Sep 2002 23:46:55 +0000
(23:46 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 25 Sep 2002 23:46:55 +0000
(23:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3927
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/TargetData.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/TargetData.cpp
b/lib/Target/TargetData.cpp
index 761ae00ae373ea5e7ac2fe4eb215d69fce1b4554..ec27d9e028e794dde213a20595fd5c5341db1d20 100644
(file)
--- a/
lib/Target/TargetData.cpp
+++ b/
lib/Target/TargetData.cpp
@@
-14,6
+14,13
@@
#include "llvm/DerivedTypes.h"
#include "llvm/Constants.h"
+// Handle the Pass registration stuff neccesary to use TargetData's.
+namespace {
+ // Register the default SparcV9 implementation...
+ RegisterPass<TargetData> X("targetdata", "Target Data Layout");
+}
+
+
static inline void getTypeInfo(const Type *Ty, const TargetData *TD,
uint64_t &Size, unsigned char &Alignment);