[cfe-commits] r100708 - in /cfe/trunk: lib/Frontend/CompilerInvocation.cpp lib/Frontend/FrontendActions.cpp lib/Frontend/LangStandards.cpp lib/Frontend/PCHWriterDecl.cpp lib/Headers/nmmintrin.h test/Sema/attr-section.c test/Sema/warn-missing-braces.c test/SemaCXX/warn-weak-vtables.cpp www/clang_video-05-25-2007.html www/clang_video-07-25-2007.html www/menu.css
Chris Lattner
sabre at nondot.org
Wed Apr 7 15:58:07 PDT 2010
Author: lattner
Date: Wed Apr 7 17:58:06 2010
New Revision: 100708
URL: http://llvm.org/viewvc/llvm-project?rev=100708&view=rev
Log:
rename llvm::llvm_report_error -> llvm::report_fatal_error
Modified:
cfe/trunk/lib/Frontend/CompilerInvocation.cpp
cfe/trunk/lib/Frontend/FrontendActions.cpp
cfe/trunk/lib/Frontend/LangStandards.cpp
cfe/trunk/lib/Frontend/PCHWriterDecl.cpp
cfe/trunk/lib/Headers/nmmintrin.h
cfe/trunk/test/Sema/attr-section.c
cfe/trunk/test/Sema/warn-missing-braces.c
cfe/trunk/test/SemaCXX/warn-weak-vtables.cpp
cfe/trunk/www/clang_video-05-25-2007.html
cfe/trunk/www/clang_video-07-25-2007.html
cfe/trunk/www/menu.css
Modified: cfe/trunk/lib/Frontend/CompilerInvocation.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/CompilerInvocation.cpp?rev=100708&r1=100707&r2=100708&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/CompilerInvocation.cpp (original)
+++ cfe/trunk/lib/Frontend/CompilerInvocation.cpp Wed Apr 7 17:58:06 2010
@@ -393,7 +393,7 @@
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 @@
}
} 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 @@
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 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");
Modified: cfe/trunk/lib/Frontend/FrontendActions.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/FrontendActions.cpp?rev=100708&r1=100707&r2=100708&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/FrontendActions.cpp (original)
+++ cfe/trunk/lib/Frontend/FrontendActions.cpp Wed Apr 7 17:58:06 2010
@@ -212,7 +212,7 @@
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());
Modified: cfe/trunk/lib/Frontend/LangStandards.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/LangStandards.cpp?rev=100708&r1=100707&r2=100708&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/LangStandards.cpp (original)
+++ cfe/trunk/lib/Frontend/LangStandards.cpp Wed Apr 7 17:58:06 2010
@@ -22,7 +22,7 @@
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"
Modified: cfe/trunk/lib/Frontend/PCHWriterDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/PCHWriterDecl.cpp?rev=100708&r1=100707&r2=100708&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/PCHWriterDecl.cpp (original)
+++ cfe/trunk/lib/Frontend/PCHWriterDecl.cpp Wed Apr 7 17:58:06 2010
@@ -608,7 +608,7 @@
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);
Modified: cfe/trunk/lib/Headers/nmmintrin.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/nmmintrin.h?rev=100708&r1=100707&r2=100708&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/nmmintrin.h (original)
+++ cfe/trunk/lib/Headers/nmmintrin.h Wed Apr 7 17:58:06 2010
@@ -32,4 +32,4 @@
just include it now then. */
#include <smmintrin.h>
#endif /* __SSE4_2__ */
-#endif /* _NMMINTRIN_H */
\ No newline at end of file
+#endif /* _NMMINTRIN_H */
Modified: cfe/trunk/test/Sema/attr-section.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/attr-section.c?rev=100708&r1=100707&r2=100708&view=diff
==============================================================================
--- cfe/trunk/test/Sema/attr-section.c (original)
+++ cfe/trunk/test/Sema/attr-section.c Wed Apr 7 17:58:06 2010
@@ -12,4 +12,4 @@
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.
-}
\ No newline at end of file
+}
Modified: cfe/trunk/test/Sema/warn-missing-braces.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/warn-missing-braces.c?rev=100708&r1=100707&r2=100708&view=diff
==============================================================================
--- cfe/trunk/test/Sema/warn-missing-braces.c (original)
+++ cfe/trunk/test/Sema/warn-missing-braces.c Wed Apr 7 17:58:06 2010
@@ -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}}
\ No newline at end of file
+int a[2][2] = { 0, 1, 2, 3 }; // expected-warning{{suggest braces}} expected-warning{{suggest braces}}
Modified: cfe/trunk/test/SemaCXX/warn-weak-vtables.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/warn-weak-vtables.cpp?rev=100708&r1=100707&r2=100708&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/warn-weak-vtables.cpp (original)
+++ cfe/trunk/test/SemaCXX/warn-weak-vtables.cpp Wed Apr 7 17:58:06 2010
@@ -18,4 +18,4 @@
struct A {
virtual void f() { }
};
-}
\ No newline at end of file
+}
Modified: cfe/trunk/www/clang_video-05-25-2007.html
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/www/clang_video-05-25-2007.html?rev=100708&r1=100707&r2=100708&view=diff
==============================================================================
--- cfe/trunk/www/clang_video-05-25-2007.html (original)
+++ cfe/trunk/www/clang_video-05-25-2007.html Wed Apr 7 17:58:06 2010
@@ -24,4 +24,4 @@
</ul>
</div>
</body>
-</html>
\ No newline at end of file
+</html>
Modified: cfe/trunk/www/clang_video-07-25-2007.html
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/www/clang_video-07-25-2007.html?rev=100708&r1=100707&r2=100708&view=diff
==============================================================================
--- cfe/trunk/www/clang_video-07-25-2007.html (original)
+++ cfe/trunk/www/clang_video-07-25-2007.html Wed Apr 7 17:58:06 2010
@@ -27,4 +27,4 @@
<i>Google Tech Talk</i>, Mountain View, CA, July 2007.
</div>
</body>
-</html>
\ No newline at end of file
+</html>
Modified: cfe/trunk/www/menu.css
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/www/menu.css?rev=100708&r1=100707&r2=100708&view=diff
==============================================================================
--- cfe/trunk/www/menu.css (original)
+++ cfe/trunk/www/menu.css Wed Apr 7 17:58:06 2010
@@ -36,4 +36,4 @@
}
#menu a:visited {
color:rgb(100,50,100);
-}
\ No newline at end of file
+}
More information about the cfe-commits
mailing list