diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-02-17 04:54:50 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-02-17 04:54:50 +0000 |
commit | ae819500a16af284fe03e2951be714f6b89ad56f (patch) | |
tree | 9e43c925174dda55e8c49e70d4deac8dccad82a5 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 7ae3c75d97e46c56b7b40290381e0e4ef0c9125f (diff) | |
download | llvm-ae819500a16af284fe03e2951be714f6b89ad56f.zip llvm-ae819500a16af284fe03e2951be714f6b89ad56f.tar.gz llvm-ae819500a16af284fe03e2951be714f6b89ad56f.tar.bz2 |
When performing IRGen on a global, emit it as a constant if:
1) It has a const-qualified type, and
2) It has no mutable members, and
3) It has no dynamic initialization, and
4) It has trivial destruction.
Remove the unnecessary requirement that the type be POD. This allows us to
mark all constexpr objects with no mutable members as 'constant'.
llvm-svn: 150792
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions