mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Fix 'gcc -flto' builds for unittest binaries (undefined reference to
`typeinfo for llvm:🆑:GenericOptionValue').
Remove an "anchor" method for an abstract class. (This does not
increase the number of vtables.)
llvm-svn: 183830
This commit is contained in:
parent
307b53fe55
commit
2c2535b8d0
@ -350,8 +350,6 @@ struct cat {
|
||||
struct GenericOptionValue {
|
||||
virtual ~GenericOptionValue() {}
|
||||
virtual bool compare(const GenericOptionValue &V) const = 0;
|
||||
private:
|
||||
virtual void anchor();
|
||||
};
|
||||
|
||||
template<class DataType> struct OptionValue;
|
||||
|
@ -59,7 +59,6 @@ TEMPLATE_INSTANTIATION(class opt<char>);
|
||||
TEMPLATE_INSTANTIATION(class opt<bool>);
|
||||
} } // end namespace llvm::cl
|
||||
|
||||
void GenericOptionValue::anchor() {}
|
||||
void OptionValue<boolOrDefault>::anchor() {}
|
||||
void OptionValue<std::string>::anchor() {}
|
||||
void Option::anchor() {}
|
||||
|
Loading…
Reference in New Issue
Block a user