Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion llvm/lib/Target/X86/X86TargetMachine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ getEffectiveX86CodeModel(const Triple &TT, std::optional<CodeModel::Model> CM,
bool Is64Bit = TT.getArch() == Triple::x86_64;
if (CM) {
if (*CM == CodeModel::Tiny)
report_fatal_error("Target does not support the tiny CodeModel", false);
reportFatalUsageError("target does not support the tiny CodeModel");
return *CM;
}
if (JIT)
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/CodeGen/X86/codemodel.ll
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f3
target triple = "x86_64-unknown-linux-gnu"
@data = external dso_local global [0 x i32] ; <ptr> [#uses=5]

; CHECK-TINY: Target does not support the tiny CodeModel
; CHECK-TINY: LLVM ERROR: target does not support the tiny CodeModel

define i32 @foo() nounwind readonly {
entry:
Expand Down
Loading