Skip to content

Commit 671d616

Browse files
committed
Revert "[TextAPI] Add missing link to libObject" and "[TextAPI] Add DylibReader (llvm#75006)"
This reverts commit aa217eb. This reverts commit 634fedd. This breaks buildbots by introducing cycle dependency between libObject and TextAPI and breaks gcc compiles on buildbots. (cherry picked from commit 1fef0fa)
1 parent 94852a8 commit 671d616

File tree

6 files changed

+1
-463
lines changed

6 files changed

+1
-463
lines changed

llvm/include/llvm/TextAPI/DylibReader.h

Lines changed: 0 additions & 43 deletions
This file was deleted.

llvm/include/llvm/TextAPI/Record.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,6 @@ class GlobalRecord : public Record {
103103

104104
bool isFunction() const { return GV == Kind::Function; }
105105
bool isVariable() const { return GV == Kind::Variable; }
106-
void setKind(const Kind &V) {
107-
if (GV == Kind::Unknown)
108-
GV = V;
109-
}
110106

111107
private:
112108
Kind GV;

llvm/include/llvm/TextAPI/RecordsSlice.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,6 @@ class RecordsSlice {
181181
std::unique_ptr<BinaryAttrs> BA{nullptr};
182182
};
183183

184-
using Records = llvm::SmallVector<std::shared_ptr<RecordsSlice>, 4>;
185-
186184
} // namespace MachO
187185
} // namespace llvm
188186
#endif // LLVM_TEXTAPI_RECORDSLICE_H

llvm/include/llvm/TextAPI/TextAPIError.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ enum class TextAPIErrorCode {
2121
NoSuchArchitecture,
2222
EmptyResults,
2323
GenericFrontendError,
24-
InvalidInputFormat,
25-
UnsupportedTarget
24+
InvalidInputFormat
2625
};
2726

2827
class TextAPIError : public llvm::ErrorInfo<TextAPIError> {

llvm/lib/TextAPI/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
add_llvm_component_library(LLVMTextAPI
22
Architecture.cpp
33
ArchitectureSet.cpp
4-
DylibReader.cpp
54
InterfaceFile.cpp
65
TextStubV5.cpp
76
PackedVersion.cpp
@@ -21,5 +20,4 @@ add_llvm_component_library(LLVMTextAPI
2120
Support
2221
BinaryFormat
2322
TargetParser
24-
Object
2523
)

0 commit comments

Comments
 (0)