Minor style fixes for TargetTransformationInfo and TargetTransformImpl

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166936 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Hans Wennborg
2012-10-29 16:26:52 +00:00
parent 8834a20d5d
commit b9051db24a
2 changed files with 9 additions and 9 deletions

View File

@@ -45,7 +45,7 @@ public:
/// used.
TargetTransformInfo();
explicit TargetTransformInfo(const ScalarTargetTransformInfo* S,
TargetTransformInfo(const ScalarTargetTransformInfo* S,
const VectorTargetTransformInfo *V)
: ImmutablePass(ID), STTI(S), VTTI(V) {
initializeTargetTransformInfoPass(*PassRegistry::getPassRegistry());
@@ -102,7 +102,7 @@ public:
/// isTruncateFree - Return true if it's free to truncate a value of
/// type Ty1 to type Ty2. e.g. On x86 it's free to truncate a i32 value in
/// register EAX to i16 by referencing its sub-register AX.
virtual bool isTruncateFree(Type * /*Ty1*/, Type * /*Ty2*/) const {
virtual bool isTruncateFree(Type *Ty1, Type *Ty2) const {
return false;
}
/// Is this type legal.