зеркало из https://github.com/microsoft/clang.git
rename llvm::llvm_report_error -> llvm::report_fatal_error
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100708 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
30019c0621
Коммит
83e7a78a9f
|
@ -393,7 +393,7 @@ static void HeaderSearchOptsToArgs(const HeaderSearchOptions &Opts,
|
|||
for (unsigned i = 0, e = Opts.UserEntries.size(); i != e; ++i) {
|
||||
const HeaderSearchOptions::Entry &E = Opts.UserEntries[i];
|
||||
if (E.IsFramework && (E.Group != frontend::Angled || !E.IsUserSupplied))
|
||||
llvm::llvm_report_error("Invalid option set!");
|
||||
llvm::report_fatal_error("Invalid option set!");
|
||||
if (E.IsUserSupplied) {
|
||||
if (E.Group == frontend::After) {
|
||||
Res.push_back("-idirafter");
|
||||
|
@ -407,7 +407,7 @@ static void HeaderSearchOptsToArgs(const HeaderSearchOptions &Opts,
|
|||
}
|
||||
} else {
|
||||
if (E.Group != frontend::Angled && E.Group != frontend::System)
|
||||
llvm::llvm_report_error("Invalid option set!");
|
||||
llvm::report_fatal_error("Invalid option set!");
|
||||
Res.push_back(E.Group == frontend::Angled ? "-iwithprefixbefore" :
|
||||
"-iwithprefix");
|
||||
}
|
||||
|
@ -416,23 +416,23 @@ static void HeaderSearchOptsToArgs(const HeaderSearchOptions &Opts,
|
|||
|
||||
if (!Opts.EnvIncPath.empty()) {
|
||||
// FIXME: Provide an option for this, and move env detection to driver.
|
||||
llvm::llvm_report_error("Not yet implemented!");
|
||||
llvm::report_fatal_error("Not yet implemented!");
|
||||
}
|
||||
if (!Opts.CEnvIncPath.empty()) {
|
||||
// FIXME: Provide an option for this, and move env detection to driver.
|
||||
llvm::llvm_report_error("Not yet implemented!");
|
||||
llvm::report_fatal_error("Not yet implemented!");
|
||||
}
|
||||
if (!Opts.ObjCEnvIncPath.empty()) {
|
||||
// FIXME: Provide an option for this, and move env detection to driver.
|
||||
llvm::llvm_report_error("Not yet implemented!");
|
||||
llvm::report_fatal_error("Not yet implemented!");
|
||||
}
|
||||
if (!Opts.CXXEnvIncPath.empty()) {
|
||||
// FIXME: Provide an option for this, and move env detection to driver.
|
||||
llvm::llvm_report_error("Not yet implemented!");
|
||||
llvm::report_fatal_error("Not yet implemented!");
|
||||
}
|
||||
if (!Opts.ObjCXXEnvIncPath.empty()) {
|
||||
// FIXME: Provide an option for this, and move env detection to driver.
|
||||
llvm::llvm_report_error("Not yet implemented!");
|
||||
llvm::report_fatal_error("Not yet implemented!");
|
||||
}
|
||||
if (!Opts.ResourceDir.empty()) {
|
||||
Res.push_back("-resource-dir");
|
||||
|
@ -610,7 +610,7 @@ static void PreprocessorOptsToArgs(const PreprocessorOptions &Opts,
|
|||
static void PreprocessorOutputOptsToArgs(const PreprocessorOutputOptions &Opts,
|
||||
std::vector<std::string> &Res) {
|
||||
if (!Opts.ShowCPP && !Opts.ShowMacros)
|
||||
llvm::llvm_report_error("Invalid option combination!");
|
||||
llvm::report_fatal_error("Invalid option combination!");
|
||||
|
||||
if (Opts.ShowCPP && Opts.ShowMacros)
|
||||
Res.push_back("-dD");
|
||||
|
|
|
@ -212,7 +212,7 @@ void GeneratePTHAction::ExecuteAction() {
|
|||
CI.getFrontendOpts().OutputFile == "-") {
|
||||
// FIXME: Don't fail this way.
|
||||
// FIXME: Verify that we can actually seek in the given file.
|
||||
llvm::llvm_report_error("PTH requires a seekable file for output!");
|
||||
llvm::report_fatal_error("PTH requires a seekable file for output!");
|
||||
}
|
||||
llvm::raw_fd_ostream *OS =
|
||||
CI.createDefaultOutputFile(true, getCurrentFile());
|
||||
|
|
|
@ -22,7 +22,7 @@ const LangStandard &LangStandard::getLangStandardForKind(Kind K) {
|
|||
default:
|
||||
llvm_unreachable("Invalid language kind!");
|
||||
case lang_unspecified:
|
||||
llvm::llvm_report_error("getLangStandardForKind() on unspecified kind");
|
||||
llvm::report_fatal_error("getLangStandardForKind() on unspecified kind");
|
||||
#define LANGSTANDARD(id, name, desc, features) \
|
||||
case lang_##id: return Lang_##id;
|
||||
#include "clang/Frontend/LangStandards.def"
|
||||
|
|
|
@ -608,7 +608,7 @@ void PCHWriter::WriteDecl(ASTContext &Context, Decl *D) {
|
|||
if (DC) W.VisitDeclContext(DC, LexicalOffset, VisibleOffset);
|
||||
|
||||
if (!W.Code)
|
||||
llvm::llvm_report_error(llvm::StringRef("unexpected declaration kind '") +
|
||||
llvm::report_fatal_error(llvm::StringRef("unexpected declaration kind '") +
|
||||
D->getDeclKindName() + "'");
|
||||
Stream.EmitRecord(W.Code, Record, W.AbbrevToUse);
|
||||
|
||||
|
|
|
@ -32,4 +32,4 @@
|
|||
just include it now then. */
|
||||
#include <smmintrin.h>
|
||||
#endif /* __SSE4_2__ */
|
||||
#endif /* _NMMINTRIN_H */
|
||||
#endif /* _NMMINTRIN_H */
|
||||
|
|
|
@ -12,4 +12,4 @@ int y __attribute__((section(
|
|||
void test() {
|
||||
__attribute__((section("NEAR,x"))) int n1; // expected-error {{'section' attribute is not valid on local variables}}
|
||||
__attribute__((section("NEAR,x"))) static int n2; // ok.
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -Wmissing-braces -verify %s
|
||||
|
||||
int a[2][2] = { 0, 1, 2, 3 }; // expected-warning{{suggest braces}} expected-warning{{suggest braces}}
|
||||
int a[2][2] = { 0, 1, 2, 3 }; // expected-warning{{suggest braces}} expected-warning{{suggest braces}}
|
||||
|
|
|
@ -18,4 +18,4 @@ void f() {
|
|||
struct A {
|
||||
virtual void f() { }
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,4 +24,4 @@
|
|||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
@ -27,4 +27,4 @@
|
|||
<i>Google Tech Talk</i>, Mountain View, CA, July 2007.
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
@ -36,4 +36,4 @@
|
|||
}
|
||||
#menu a:visited {
|
||||
color:rgb(100,50,100);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче