Skip to content

Commit

Permalink
[AArch64] Make the naming of the Address Type Promotion pass consistent.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244057 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Chad Rosier committed Aug 5, 2015
1 parent 085e440 commit f9bc05c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/Target/AArch64/AArch64AddressTypePromotion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ EnableMerge("aarch64-type-promotion-merge", cl::Hidden,
" the other."),
cl::init(true));

#define AARCH64_TYPE_PROMO_NAME "AArch64 Address Type Promotion"

//===----------------------------------------------------------------------===//
// AArch64AddressTypePromotion
//===----------------------------------------------------------------------===//
Expand All @@ -76,7 +78,7 @@ class AArch64AddressTypePromotion : public FunctionPass {
}

const char *getPassName() const override {
return "AArch64 Address Type Promotion";
return AARCH64_TYPE_PROMO_NAME;
}

/// Iterate over the functions and promote the computation of interesting
Expand Down Expand Up @@ -143,10 +145,10 @@ class AArch64AddressTypePromotion : public FunctionPass {
char AArch64AddressTypePromotion::ID = 0;

INITIALIZE_PASS_BEGIN(AArch64AddressTypePromotion, "aarch64-type-promotion",
"AArch64 Type Promotion Pass", false, false)
AARCH64_TYPE_PROMO_NAME, false, false)
INITIALIZE_PASS_DEPENDENCY(DominatorTreeWrapperPass)
INITIALIZE_PASS_END(AArch64AddressTypePromotion, "aarch64-type-promotion",
"AArch64 Type Promotion Pass", false, false)
AARCH64_TYPE_PROMO_NAME, false, false)

FunctionPass *llvm::createAArch64AddressTypePromotionPass() {
return new AArch64AddressTypePromotion();
Expand Down

0 comments on commit f9bc05c

Please sign in to comment.