forked from OSchip/llvm-project
Changes so that a few tests do not fail when running under guarded malloc.
Guarded malloc emits some messages at the beginning in stderr when enabled. These messages caused a few tests to fail. llvm-svn: 186219
This commit is contained in:
parent
021c8ded04
commit
8ade08edba
|
@ -2423,8 +2423,8 @@ ASTContext::getASTRecordLayout(const RecordDecl *D) const {
|
|||
ASTRecordLayouts[D] = NewEntry;
|
||||
|
||||
if (getLangOpts().DumpRecordLayouts) {
|
||||
llvm::errs() << "\n*** Dumping AST Record Layout\n";
|
||||
DumpRecordLayout(D, llvm::errs(), getLangOpts().DumpRecordLayoutsSimple);
|
||||
llvm::outs() << "\n*** Dumping AST Record Layout\n";
|
||||
DumpRecordLayout(D, llvm::outs(), getLangOpts().DumpRecordLayoutsSimple);
|
||||
}
|
||||
|
||||
return *NewEntry;
|
||||
|
|
|
@ -976,11 +976,11 @@ CGRecordLayout *CodeGenTypes::ComputeRecordLayout(const RecordDecl *D,
|
|||
|
||||
// Dump the layout, if requested.
|
||||
if (getContext().getLangOpts().DumpRecordLayouts) {
|
||||
llvm::errs() << "\n*** Dumping IRgen Record Layout\n";
|
||||
llvm::errs() << "Record: ";
|
||||
D->dump();
|
||||
llvm::errs() << "\nLayout: ";
|
||||
RL->dump();
|
||||
llvm::outs() << "\n*** Dumping IRgen Record Layout\n";
|
||||
llvm::outs() << "Record: ";
|
||||
D->dump(llvm::outs());
|
||||
llvm::outs() << "\nLayout: ";
|
||||
RL->print(llvm::outs());
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// RUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/class1.cpp
|
||||
// RUN: %clang_cc1 -emit-pch -o %t.2.ast %S/Inputs/class2.cpp
|
||||
// RUN: %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s
|
||||
// RUN: %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 -Wno-odr | count 0
|
||||
// RUN: %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 -Wno-odr -Werror
|
||||
|
||||
// CHECK: class1.cpp:5:8: warning: type 'B' has incompatible definitions in different translation units
|
||||
// CHECK: class1.cpp:6:9: note: field 'y' has type 'float' here
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: %clang_cc1 -emit-llvm -triple x86_64 -O3 -o %t.opt.ll %s \
|
||||
// RUN: -fdump-record-layouts 2> %t.dump.txt
|
||||
// RUN: -fdump-record-layouts > %t.dump.txt
|
||||
// RUN: FileCheck -check-prefix=CHECK-RECORD < %t.dump.txt %s
|
||||
// RUN: FileCheck -check-prefix=CHECK-OPT < %t.opt.ll %s
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// RUN: %clang_cc1 -w -fdump-record-layouts %s 2> %t.layouts
|
||||
// RUN: %clang_cc1 -w -fdump-record-layouts-simple %s > %t.before 2>&1
|
||||
// RUN: %clang_cc1 -w -DPACKED= -DALIGNED16= -fdump-record-layouts-simple -foverride-record-layout=%t.layouts %s > %t.after 2>&1
|
||||
// RUN: %clang_cc1 -w -fdump-record-layouts %s > %t.layouts
|
||||
// RUN: %clang_cc1 -w -fdump-record-layouts-simple %s > %t.before
|
||||
// RUN: %clang_cc1 -w -DPACKED= -DALIGNED16= -fdump-record-layouts-simple -foverride-record-layout=%t.layouts %s > %t.after
|
||||
// RUN: diff %t.before %t.after
|
||||
// RUN: FileCheck %s < %t.after
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// RUN: %clang_cc1 -fdump-record-layouts-simple %s 2> %t.layouts
|
||||
// RUN: %clang_cc1 -fdump-record-layouts-simple %s > %t.before 2>&1
|
||||
// RUN: %clang_cc1 -DPACKED= -DALIGNED16= -fdump-record-layouts-simple -foverride-record-layout=%t.layouts %s > %t.after 2>&1
|
||||
// RUN: %clang_cc1 -fdump-record-layouts-simple %s > %t.layouts
|
||||
// RUN: %clang_cc1 -fdump-record-layouts-simple %s > %t.before
|
||||
// RUN: %clang_cc1 -DPACKED= -DALIGNED16= -fdump-record-layouts-simple -foverride-record-layout=%t.layouts %s > %t.after
|
||||
// RUN: diff -u %t.before %t.after
|
||||
// RUN: FileCheck %s < %t.after
|
||||
|
||||
|
|
Loading…
Reference in New Issue