Skip to content

Commit b8f70fe

Browse files
[llvm] Remove "using support::endianness;" (NFC)
Now that llvm::support::endianness has been renamed to llvm::endianness, we can directly get endianness from the llvm namespace. We don't need to go through support.
1 parent 18622fc commit b8f70fe

File tree

3 files changed

+0
-4
lines changed

3 files changed

+0
-4
lines changed

llvm/include/llvm/Object/ELFTypes.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
namespace llvm {
2525
namespace object {
2626

27-
using support::endianness;
28-
2927
template <class ELFT> struct Elf_Ehdr_Impl;
3028
template <class ELFT> struct Elf_Shdr_Impl;
3129
template <class ELFT> struct Elf_Sym_Impl;

llvm/lib/DebugInfo/BTF/BTFParser.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ const BTF::CommonType VoidTypeInst = {0, BTF::BTF_KIND_UNKN << 24, {0}};
204204
Error BTFParser::parseTypesInfo(ParseContext &Ctx, uint64_t TypesInfoStart,
205205
StringRef RawData) {
206206
using support::big;
207-
using support::endianness;
208207
using support::little;
209208
using support::endian::byte_swap;
210209

llvm/lib/Support/BinaryStreamReader.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include "llvm/Support/LEB128.h"
1414

1515
using namespace llvm;
16-
using endianness = llvm::support::endianness;
1716

1817
BinaryStreamReader::BinaryStreamReader(BinaryStreamRef Ref) : Stream(Ref) {}
1918

0 commit comments

Comments
 (0)