|  | 
| 38 | 38 | #include "llvm/MC/MCStreamer.h" | 
| 39 | 39 | #include "llvm/MC/MCSubtargetInfo.h" | 
| 40 | 40 | #include "llvm/MC/MCTargetOptions.h" | 
|  | 41 | +#include "llvm/MC/TargetRegistry.h" | 
| 41 | 42 | #include "llvm/Option/Arg.h" | 
| 42 | 43 | #include "llvm/Option/ArgList.h" | 
| 43 | 44 | #include "llvm/Option/OptTable.h" | 
|  | 
| 51 | 52 | #include "llvm/Support/Process.h" | 
| 52 | 53 | #include "llvm/Support/Signals.h" | 
| 53 | 54 | #include "llvm/Support/SourceMgr.h" | 
| 54 |  | -#include "llvm/Support/TargetRegistry.h" | 
| 55 | 55 | #include "llvm/Support/TargetSelect.h" | 
| 56 | 56 | #include "llvm/Support/Timer.h" | 
| 57 | 57 | #include "llvm/Support/raw_ostream.h" | 
| @@ -120,7 +120,6 @@ bool AssemblerInvocation::CreateFromArgs(AssemblerInvocation &Opts, | 
| 120 | 120 |         llvm::StringSwitch<llvm::DebugCompressionType>(A->getValue()) | 
| 121 | 121 |             .Case("none", llvm::DebugCompressionType::None) | 
| 122 | 122 |             .Case("zlib", llvm::DebugCompressionType::Z) | 
| 123 |  | -            .Case("zlib-gnu", llvm::DebugCompressionType::GNU) | 
| 124 | 123 |             .Default(llvm::DebugCompressionType::None); | 
| 125 | 124 |   } | 
| 126 | 125 | 
 | 
| @@ -382,7 +381,7 @@ static bool ExecuteAssemblerImpl(AssemblerInvocation &Opts, | 
| 382 | 381 |         T, Ctx, std::move(MAB), std::move(OW), std::move(CE), *STI, | 
| 383 | 382 |         Opts.RelaxAll, Opts.IncrementalLinkerCompatible, | 
| 384 | 383 |         /*DWARFMustBeAtTheEnd*/ true)); | 
| 385 |  | -    Str.get()->InitSections(Opts.NoExecStack); | 
|  | 384 | +    Str.get()->initSections(Opts.NoExecStack, *STI); | 
| 386 | 385 |   } | 
| 387 | 386 | 
 | 
| 388 | 387 |   // When -fembed-bitcode is passed to clang_as, a 1-byte marker | 
| @@ -442,7 +441,7 @@ bool ExecuteAssembler(AssemblerInvocation &Opts, | 
| 442 | 441 |   return Failed; | 
| 443 | 442 | } | 
| 444 | 443 | 
 | 
| 445 |  | -static void LLVMErrorHandler(void *UserData, const std::string &Message, | 
|  | 444 | +static void LLVMErrorHandler(void *UserData, const char *Message, | 
| 446 | 445 |                              bool GenCrashDiag) { | 
| 447 | 446 |   DiagnosticsEngine &Diags = *static_cast<DiagnosticsEngine*>(UserData); | 
| 448 | 447 | 
 | 
|  | 
0 commit comments