Skip to content

Instantly share code, notes, and snippets.

; ModuleID = 'test.bc'
source_filename = "testin.c"
target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc19.24.28314"
; Function Attrs: noinline nounwind optnone uwtable
define dso_local i32 @Max(i32 %a, i32 %b) #0 {
entry:
%b.addr = alloca i32, align 4
%a.addr = alloca i32, align 4
%res = alloca i32, align 4
procedure TaskKill(FileName: String);
var
ResultCode: Integer;
begin
Exec(ExpandConstant('taskkill.exe'), '/f /im ' + '"' + FileName + '"', '', SW_HIDE,
ewWaitUntilTerminated, ResultCode);
end;
extern void rthrow(int n);
class CCleanup {
public:
~CCleanup() {}
};
int main() {
// State = -1
rthrow(1);
0x00000059: DW_TAG_subprogram [6] *
DW_AT_low_pc [DW_FORM_addr] (0x0000000000437020)
DW_AT_high_pc [DW_FORM_data4] (0x0000001e)
DW_AT_frame_base [DW_FORM_exprloc] (<0x1> 55 )
DW_AT_linkage_name [DW_FORM_strp] ( .debug_str[0x000000ae] = "mi_t11_issudebugtest.ABC2_AA")
DW_AT_name [DW_FORM_strp] ( .debug_str[0x000000cb] = "AA")
DW_AT_decl_file [DW_FORM_data1] ("/__windows_drive__c/projects/oxygene/testcases/work\issudebug_1.pas")
DW_AT_decl_line [DW_FORM_data1] (16)
DW_AT_external [DW_FORM_flag_present] (true)
diff --git a/include/llvm/ADT/Triple.h b/include/llvm/ADT/Triple.h
index 59b6214..ad9fe06 100644
--- a/include/llvm/ADT/Triple.h
+++ b/include/llvm/ADT/Triple.h
@@ -429,7 +429,7 @@ public:
/// isOSDarwin - Is this a "Darwin" OS (OS X, iOS, or watchOS).
bool isOSDarwin() const {
- return isMacOSX() || isiOS() || isWatchOS() || isTvOS();
+ return isMacOSX() || isiOS() || isWatchOS();