From ccc8d3ba06408feff0ca6e58973c20d15010e3fc Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Thu, 1 Mar 2012 13:37:55 +0000 Subject: Make TargetRegisterClasses non-virtual by making the only virtual function a function pointer. This allows us to make TRC non-polymorphic and value-initializable, eliminating a huge static initializer and a ton of cruft from the generated code. Shrinks ARMBaseRegisterInfo.o by ~100k. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151806 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/TargetRegisterInfo.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/Target/TargetRegisterInfo.cpp') diff --git a/lib/Target/TargetRegisterInfo.cpp b/lib/Target/TargetRegisterInfo.cpp index ad663199e5..2689837322 100644 --- a/lib/Target/TargetRegisterInfo.cpp +++ b/lib/Target/TargetRegisterInfo.cpp @@ -18,8 +18,6 @@ using namespace llvm; -void TargetRegisterClass::anchor() { } - TargetRegisterInfo::TargetRegisterInfo(const TargetRegisterInfoDesc *ID, regclass_iterator RCB, regclass_iterator RCE, const char *const *subregindexnames) -- cgit v1.2.3-70-g09d2