Skip to content

Commit 12c63a8

Browse files
committed
---
yaml --- r: 347291 b: refs/heads/master c: 3550e01 h: refs/heads/master i: 347289: 93ae86e 347287: 390c69a
1 parent 8b8a725 commit 12c63a8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 283519e0083f5675888c82bf19d0d7482118ddec
2+
refs/heads/master: 3550e01dc59e36fa5e8629cd1445ea6f6c735fc2
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/tools/lldb-moduleimport-test/lldb-moduleimport-test.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include "swift/Basic/Dwarf.h"
2626
#include "llvm/Object/ELFObjectFile.h"
2727
#include "swift/Basic/LLVMInitialize.h"
28+
#include "llvm/Object/COFF.h"
2829
#include "llvm/Object/MachO.h"
2930
#include "llvm/Object/ObjectFile.h"
3031
#include "llvm/Support/CommandLine.h"
@@ -133,6 +134,7 @@ collectASTModules(llvm::cl::list<std::string> &InputNames,
133134
auto *Obj = OF->getBinary();
134135
auto *MachO = llvm::dyn_cast<llvm::object::MachOObjectFile>(Obj);
135136
auto *ELF = llvm::dyn_cast<llvm::object::ELFObjectFileBase>(Obj);
137+
auto *COFF = llvm::dyn_cast<llvm::object::COFFObjectFile>(Obj);
136138

137139
if (MachO) {
138140
for (auto &Symbol : Obj->symbols()) {
@@ -164,7 +166,8 @@ collectASTModules(llvm::cl::list<std::string> &InputNames,
164166
llvm::StringRef Name;
165167
Section.getName(Name);
166168
if ((MachO && Name == swift::MachOASTSectionName) ||
167-
(ELF && Name == swift::ELFASTSectionName)) {
169+
(ELF && Name == swift::ELFASTSectionName) ||
170+
(COFF && Name == swift::COFFASTSectionName)) {
168171
uint64_t Size = Section.getSize();
169172
StringRef ContentsReference;
170173
Section.getContents(ContentsReference);

0 commit comments

Comments
 (0)