summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2018-06-10 04:53:14 +0000
committerFangrui Song <maskray@google.com>2018-06-10 04:53:14 +0000
commit72d68d3473ab34e98ef981cefbf86d41580769cc (patch)
treedf3ddc05ac0b893f42a411181bb34cfae2f8e10c
parentedd16bdf674e64130debaa79fab839dca000ba5b (diff)
Cleanup. NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@334357 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/MC/MCInstPrinter.h3
-rw-r--r--lib/Support/Unix/Path.inc2
-rw-r--r--lib/Support/Unix/Process.inc2
3 files changed, 3 insertions, 4 deletions
diff --git a/include/llvm/MC/MCInstPrinter.h b/include/llvm/MC/MCInstPrinter.h
index b8bb085538d..df221e1db0e 100644
--- a/include/llvm/MC/MCInstPrinter.h
+++ b/include/llvm/MC/MCInstPrinter.h
@@ -15,7 +15,6 @@
namespace llvm {
-template <typename T> class ArrayRef;
class MCAsmInfo;
class MCInst;
class MCInstrInfo;
@@ -42,7 +41,7 @@ class MCInstPrinter {
protected:
/// A stream that comments can be emitted to if desired. Each comment
/// must end with a newline. This will be null if verbose assembly emission
- /// is disable.
+ /// is disabled.
raw_ostream *CommentStream = nullptr;
const MCAsmInfo &MAI;
const MCInstrInfo &MII;
diff --git a/lib/Support/Unix/Path.inc b/lib/Support/Unix/Path.inc
index f3f529e54d7..9800f866309 100644
--- a/lib/Support/Unix/Path.inc
+++ b/lib/Support/Unix/Path.inc
@@ -521,7 +521,7 @@ static void expandTildeExpr(SmallVectorImpl<char> &Path) {
}
static std::error_code fillStatus(int StatRet, const struct stat &Status,
- file_status &Result) {
+ file_status &Result) {
if (StatRet != 0) {
std::error_code ec(errno, std::generic_category());
if (ec == errc::no_such_file_or_directory)
diff --git a/lib/Support/Unix/Process.inc b/lib/Support/Unix/Process.inc
index 68baab8a0b6..43ba6d615c6 100644
--- a/lib/Support/Unix/Process.inc
+++ b/lib/Support/Unix/Process.inc
@@ -79,7 +79,7 @@ unsigned Process::getPageSize() {
#elif defined(HAVE_SYSCONF)
static long page_size = ::sysconf(_SC_PAGE_SIZE);
#else
-#warning Cannot get the page size on this machine
+#error Cannot get the page size on this machine
#endif
return static_cast<unsigned>(page_size);
}