[llvm] b8f70fe - [llvm] Remove "using support::endianness;" (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 8 00:11:22 PDT 2023
Author: Kazu Hirata
Date: 2023-10-08T00:11:15-07:00
New Revision: b8f70feaeff075b998f42c9ac54f8ee330cc0a6e
URL: https://github.com/llvm/llvm-project/commit/b8f70feaeff075b998f42c9ac54f8ee330cc0a6e
DIFF: https://github.com/llvm/llvm-project/commit/b8f70feaeff075b998f42c9ac54f8ee330cc0a6e.diff
LOG: [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.
Added:
Modified:
llvm/include/llvm/Object/ELFTypes.h
llvm/lib/DebugInfo/BTF/BTFParser.cpp
llvm/lib/Support/BinaryStreamReader.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/Object/ELFTypes.h b/llvm/include/llvm/Object/ELFTypes.h
index d33b8d8db19098a..6295341e151836c 100644
--- a/llvm/include/llvm/Object/ELFTypes.h
+++ b/llvm/include/llvm/Object/ELFTypes.h
@@ -24,8 +24,6 @@
namespace llvm {
namespace object {
-using support::endianness;
-
template <class ELFT> struct Elf_Ehdr_Impl;
template <class ELFT> struct Elf_Shdr_Impl;
template <class ELFT> struct Elf_Sym_Impl;
diff --git a/llvm/lib/DebugInfo/BTF/BTFParser.cpp b/llvm/lib/DebugInfo/BTF/BTFParser.cpp
index a1b7dd396ff1dca..d1ed5d097e14605 100644
--- a/llvm/lib/DebugInfo/BTF/BTFParser.cpp
+++ b/llvm/lib/DebugInfo/BTF/BTFParser.cpp
@@ -204,7 +204,6 @@ const BTF::CommonType VoidTypeInst = {0, BTF::BTF_KIND_UNKN << 24, {0}};
Error BTFParser::parseTypesInfo(ParseContext &Ctx, uint64_t TypesInfoStart,
StringRef RawData) {
using support::big;
- using support::endianness;
using support::little;
using support::endian::byte_swap;
diff --git a/llvm/lib/Support/BinaryStreamReader.cpp b/llvm/lib/Support/BinaryStreamReader.cpp
index 2fe450db11dda3e..afc00864a5fb606 100644
--- a/llvm/lib/Support/BinaryStreamReader.cpp
+++ b/llvm/lib/Support/BinaryStreamReader.cpp
@@ -13,7 +13,6 @@
#include "llvm/Support/LEB128.h"
using namespace llvm;
-using endianness = llvm::support::endianness;
BinaryStreamReader::BinaryStreamReader(BinaryStreamRef Ref) : Stream(Ref) {}
More information about the llvm-commits
mailing list