summaryrefslogtreecommitdiff
path: root/lib/Support/raw_ostream.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-10-17 23:08:47 +0000
committerZachary Turner <zturner@google.com>2016-10-17 23:08:47 +0000
commit88bc637ad2f448feaaad5a9a9dc55285732b8af3 (patch)
treea31b96f4d2a5baab5028747d8873e98a8bd2db3d /lib/Support/raw_ostream.cpp
parentb3a18516ab0604ab781fd6b21031771cd46a2880 (diff)
Rename HexStyle -> HexFormatStyle, and remove a constexpr.
This should fix the remaining broken builds. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@284437 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/raw_ostream.cpp')
-rw-r--r--lib/Support/raw_ostream.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/Support/raw_ostream.cpp b/lib/Support/raw_ostream.cpp
index 3bf6b93df94..eb8953507ae 100644
--- a/lib/Support/raw_ostream.cpp
+++ b/lib/Support/raw_ostream.cpp
@@ -134,7 +134,7 @@ raw_ostream &raw_ostream::operator<<(long long N) {
}
raw_ostream &raw_ostream::write_hex(unsigned long long N) {
- llvm::write_hex(*this, N, HexStyle::Lower);
+ llvm::write_hex(*this, N, HexPrintStyle::Lower);
return *this;
}
@@ -179,7 +179,7 @@ raw_ostream &raw_ostream::write_escaped(StringRef Str,
}
raw_ostream &raw_ostream::operator<<(const void *P) {
- llvm::write_hex(*this, (uintptr_t)P, HexStyle::PrefixLower);
+ llvm::write_hex(*this, (uintptr_t)P, HexPrintStyle::PrefixLower);
return *this;
}
@@ -331,15 +331,15 @@ raw_ostream &raw_ostream::operator<<(const FormattedString &FS) {
raw_ostream &raw_ostream::operator<<(const FormattedNumber &FN) {
if (FN.Hex) {
- HexStyle Style;
+ HexPrintStyle Style;
if (FN.Upper && FN.HexPrefix)
- Style = HexStyle::PrefixUpper;
+ Style = HexPrintStyle::PrefixUpper;
else if (FN.Upper && !FN.HexPrefix)
- Style = HexStyle::Upper;
+ Style = HexPrintStyle::Upper;
else if (!FN.Upper && FN.HexPrefix)
- Style = HexStyle::PrefixLower;
+ Style = HexPrintStyle::PrefixLower;
else
- Style = HexStyle::Lower;
+ Style = HexPrintStyle::Lower;
llvm::write_hex(*this, FN.HexValue, Style, FN.Width, None);
} else {
llvm::write_integer(*this, FN.DecValue, IntegerStyle::Integer, None,