mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
Don't clean out the type plane of the constant pool... this is a hack. FIXME
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8896eda9a9
commit
c262f7298f
@ -37,7 +37,12 @@ using namespace cfg;
|
|||||||
|
|
||||||
struct ConstPoolDCE {
|
struct ConstPoolDCE {
|
||||||
enum { EndOffs = 0 };
|
enum { EndOffs = 0 };
|
||||||
static bool isDCEable(const Value *) { return true; }
|
static bool isDCEable(const ConstPoolVal *CPV) {
|
||||||
|
// TODO: The bytecode writer requires that all used types are in the
|
||||||
|
// constant pool for the current method. This is messy and is really
|
||||||
|
// irritating. FIXME
|
||||||
|
return CPV->getType() != Type::TypeTy; // Don't DCE Type plane constants!
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
struct BasicBlockDCE {
|
struct BasicBlockDCE {
|
||||||
|
Loading…
Reference in New Issue
Block a user