aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCObjectFileInfo.cpp
diff options
context:
space:
mode:
authorShubham Sandeep Rastogi <srastogi22@apple.com>2022-02-01 10:30:28 -0800
committerShubham Sandeep Rastogi <srastogi22@apple.com>2022-02-01 11:15:21 -0800
commit466329d047fc53ea4a1ba3843c27a5cfdacd17a5 (patch)
treede479d1fd3da57d5ae3ee82043be68b69679581b /llvm/lib/MC/MCObjectFileInfo.cpp
parentbb808720bbdc9ba40c2c6af07797d4eb26520427 (diff)
downloadllvm-466329d047fc53ea4a1ba3843c27a5cfdacd17a5.zip
llvm-466329d047fc53ea4a1ba3843c27a5cfdacd17a5.tar.gz
llvm-466329d047fc53ea4a1ba3843c27a5cfdacd17a5.tar.bz2
Change namespace llvm::swift to namespace llvm::binaryformat because of clashes with the apple/llvm-project repository
The namespace llvm::swift is causing errors to pop up in the apple/llvm-project build when cherry-picking 4ce1f3d47c33 into apple/llvm-project Differential Review: https://reviews.llvm.org/D118716
Diffstat (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp')
-rw-r--r--llvm/lib/MC/MCObjectFileInfo.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp
index 77b0b0e..b7890e7 100644
--- a/llvm/lib/MC/MCObjectFileInfo.cpp
+++ b/llvm/lib/MC/MCObjectFileInfo.cpp
@@ -304,9 +304,10 @@ void MCObjectFileInfo::initMachOMCObjectFileInfo(const Triple &T) {
// these sections in the __DWARF segment instead.
if (!Ctx->getSwift5ReflectionSegmentName().empty()) {
#define HANDLE_SWIFT_SECTION(KIND, MACHO, ELF, COFF) \
- Swift5ReflectionSections[llvm::swift::Swift5ReflectionSectionKind::KIND] = \
- Ctx->getMachOSection(Ctx->getSwift5ReflectionSegmentName().data(), \
- MACHO, 0, SectionKind::getMetadata());
+ Swift5ReflectionSections \
+ [llvm::binaryformat::Swift5ReflectionSectionKind::KIND] = \
+ Ctx->getMachOSection(Ctx->getSwift5ReflectionSegmentName().data(), \
+ MACHO, 0, SectionKind::getMetadata());
#include "llvm/BinaryFormat/Swift.def"
}