mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-16 11:24:39 +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:
@@ -40,6 +40,8 @@ using namespace llvm;
|
||||
// Constant Class
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
void Constant::anchor() { }
|
||||
|
||||
bool Constant::isNegativeZeroValue() const {
|
||||
// Floating point values have an explicit -0.0 value.
|
||||
if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this))
|
||||
@@ -363,6 +365,8 @@ void Constant::removeDeadConstantUsers() const {
|
||||
// ConstantInt
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
void ConstantInt::anchor() { }
|
||||
|
||||
ConstantInt::ConstantInt(IntegerType *Ty, const APInt& V)
|
||||
: Constant(Ty, ConstantIntVal, 0, 0), Val(V) {
|
||||
assert(V.getBitWidth() == Ty->getBitWidth() && "Invalid constant for type");
|
||||
@@ -486,6 +490,8 @@ static const fltSemantics *TypeToFloatSemantics(Type *Ty) {
|
||||
return &APFloat::PPCDoubleDouble;
|
||||
}
|
||||
|
||||
void ConstantFP::anchor() { }
|
||||
|
||||
/// get() - This returns a constant fp for the specified value in the
|
||||
/// specified type. This should only be used for simple constant values like
|
||||
/// 2.0/1.0 etc, that are known-valid both as double and as the target format.
|
||||
|
Reference in New Issue
Block a user