mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Unweaken vtables as per http://llvm.org/docs/CodingStandards.html#ll_virtual_anch
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146960 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -81,6 +81,7 @@ StringRecTy StringRecTy::Shared;
|
||||
CodeRecTy CodeRecTy::Shared;
|
||||
DagRecTy DagRecTy::Shared;
|
||||
|
||||
void RecTy::anchor() { }
|
||||
void RecTy::dump() const { print(errs()); }
|
||||
|
||||
ListRecTy *RecTy::getListTy() {
|
||||
@@ -444,13 +445,18 @@ RecTy *llvm::resolveTypes(RecTy *T1, RecTy *T2) {
|
||||
// Initializer implementations
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
void Init::anchor() { }
|
||||
void Init::dump() const { return print(errs()); }
|
||||
|
||||
void UnsetInit::anchor() { }
|
||||
|
||||
UnsetInit *UnsetInit::get() {
|
||||
static UnsetInit TheInit;
|
||||
return &TheInit;
|
||||
}
|
||||
|
||||
void BitInit::anchor() { }
|
||||
|
||||
BitInit *BitInit::get(bool V) {
|
||||
static BitInit True(true);
|
||||
static BitInit False(false);
|
||||
@@ -565,6 +571,8 @@ IntInit::convertInitializerBitRange(const std::vector<unsigned> &Bits) const {
|
||||
return BitsInit::get(NewBits);
|
||||
}
|
||||
|
||||
void StringInit::anchor() { }
|
||||
|
||||
StringInit *StringInit::get(const std::string &V) {
|
||||
typedef StringMap<StringInit *> Pool;
|
||||
static Pool ThePool;
|
||||
@@ -574,6 +582,8 @@ StringInit *StringInit::get(const std::string &V) {
|
||||
return I;
|
||||
}
|
||||
|
||||
void CodeInit::anchor() { }
|
||||
|
||||
CodeInit *CodeInit::get(const std::string &V) {
|
||||
typedef StringMap<CodeInit *> Pool;
|
||||
static Pool ThePool;
|
||||
|
||||
Reference in New Issue
Block a user