|
18 | 18 | #include "llvm/BinaryFormat/MachO.h" |
19 | 19 | #include "llvm/MC/MCDirectives.h" |
20 | 20 | #include "llvm/MC/MCDwarf.h" |
21 | | -#include "llvm/MC/MCLinkerOptimizationHint.h" |
22 | 21 | #include "llvm/MC/MCSymbol.h" |
23 | 22 | #include "llvm/Support/SMLoc.h" |
24 | 23 | #include "llvm/Support/VersionTuple.h" |
@@ -122,10 +121,6 @@ class MCAssembler { |
122 | 121 | // which flags to be set. |
123 | 122 | unsigned ELFHeaderEFlags = 0; |
124 | 123 |
|
125 | | - /// Used to communicate Linker Optimization Hint information between |
126 | | - /// the Streamer and the .o writer |
127 | | - MCLOHContainer LOHContainer; |
128 | | - |
129 | 124 | VersionInfoType VersionInfo; |
130 | 125 | VersionInfoType DarwinTargetVariantVersionInfo; |
131 | 126 |
|
@@ -341,14 +336,6 @@ class MCAssembler { |
341 | 336 | return LinkerOptions; |
342 | 337 | } |
343 | 338 |
|
344 | | - // FIXME: This is a total hack, this should not be here. Once things are |
345 | | - // factored so that the streamer has direct access to the .o writer, it can |
346 | | - // disappear. |
347 | | - MCLOHContainer &getLOHContainer() { return LOHContainer; } |
348 | | - const MCLOHContainer &getLOHContainer() const { |
349 | | - return const_cast<MCAssembler *>(this)->getLOHContainer(); |
350 | | - } |
351 | | - |
352 | 339 | struct CGProfileEntry { |
353 | 340 | const MCSymbolRefExpr *From; |
354 | 341 | const MCSymbolRefExpr *To; |
|
0 commit comments