summaryrefslogtreecommitdiff
path: root/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorNico Rieck <nico.rieck@gmail.com>2013-07-06 12:13:10 +0000
committerNico Rieck <nico.rieck@gmail.com>2013-07-06 12:13:10 +0000
commit80646283796b20c6a1b7d8eb69ce6f0478d54383 (patch)
tree83b9be6b71faffa6cd481cea7736a172d36609ea /lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent2be430d251a781e76634e945d56224a7a0ef5a39 (diff)
downloadllvm-80646283796b20c6a1b7d8eb69ce6f0478d54383.tar.gz
llvm-80646283796b20c6a1b7d8eb69ce6f0478d54383.tar.bz2
llvm-80646283796b20c6a1b7d8eb69ce6f0478d54383.tar.xz
MC: Implement COFF .linkonce directive
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185753 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r--lib/CodeGen/TargetLoweringObjectFileImpl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index 7e7359a8fe..3e1afc01e0 100644
--- a/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -732,8 +732,8 @@ getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind,
}
return getContext().getCOFFSection(Name,
Characteristics,
- Selection,
- Kind);
+ Kind,
+ Selection);
}
static const char *getCOFFSectionPrefixForUniqueGlobal(SectionKind Kind) {
@@ -769,7 +769,7 @@ SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
Characteristics |= COFF::IMAGE_SCN_LNK_COMDAT;
return getContext().getCOFFSection(Name.str(), Characteristics,
- COFF::IMAGE_COMDAT_SELECT_ANY, Kind);
+ Kind, COFF::IMAGE_COMDAT_SELECT_ANY);
}
if (Kind.isText())