Make a bunch of symbols internal.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122642 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2010-12-30 22:34:44 +00:00
parent c00210cef2
commit 1928236514
2 changed files with 18 additions and 18 deletions

View File

@ -712,31 +712,30 @@ static MCSymbol *EmitFDE(MCStreamer &streamer,
return fdeEnd; return fdeEnd;
} }
struct CIEKey { namespace {
static const CIEKey EmptyKey; struct CIEKey {
static const CIEKey TombstoneKey; static const CIEKey getEmptyKey() { return CIEKey(0, 0, -1); }
static const CIEKey getTombstoneKey() { return CIEKey(0, -1, 0); }
CIEKey(const MCSymbol* Personality_, unsigned PersonalityEncoding_, CIEKey(const MCSymbol* Personality_, unsigned PersonalityEncoding_,
unsigned LsdaEncoding_) : Personality(Personality_), unsigned LsdaEncoding_) : Personality(Personality_),
PersonalityEncoding(PersonalityEncoding_), PersonalityEncoding(PersonalityEncoding_),
LsdaEncoding(LsdaEncoding_) { LsdaEncoding(LsdaEncoding_) {
} }
const MCSymbol* Personality; const MCSymbol* Personality;
unsigned PersonalityEncoding; unsigned PersonalityEncoding;
unsigned LsdaEncoding; unsigned LsdaEncoding;
}; };
}
const CIEKey CIEKey::EmptyKey(0, 0, -1);
const CIEKey CIEKey::TombstoneKey(0, -1, 0);
namespace llvm { namespace llvm {
template <> template <>
struct DenseMapInfo<CIEKey> { struct DenseMapInfo<CIEKey> {
static CIEKey getEmptyKey() { static CIEKey getEmptyKey() {
return CIEKey::EmptyKey; return CIEKey::getEmptyKey();
} }
static CIEKey getTombstoneKey() { static CIEKey getTombstoneKey() {
return CIEKey::TombstoneKey; return CIEKey::getTombstoneKey();
} }
static unsigned getHashValue(const CIEKey &Key) { static unsigned getHashValue(const CIEKey &Key) {
FoldingSetNodeID ID; FoldingSetNodeID ID;

View File

@ -650,7 +650,8 @@ bool llvm::EliminateDuplicatePHINodes(BasicBlock *BB) {
/// is to simply align all global variables and allocation instructions to /// is to simply align all global variables and allocation instructions to
/// their preferred alignment from the beginning. /// their preferred alignment from the beginning.
/// ///
unsigned enforceKnownAlignment(Value *V, unsigned Align, unsigned PrefAlign) { static unsigned enforceKnownAlignment(Value *V, unsigned Align,
unsigned PrefAlign) {
User *U = dyn_cast<User>(V); User *U = dyn_cast<User>(V);
if (!U) return Align; if (!U) return Align;