summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-08-29 21:15:20 +0000
committerJim Grosbach <grosbach@apple.com>2011-08-29 21:15:20 +0000
commitd33b276bcb1efd4fa14c32fec68ae24baf30eb28 (patch)
treeba30a0b5be77fcaaadcdc0310323af780c050218 /include
parentacb274baacbc104d7ef3b826b443847f11548760 (diff)
downloadllvm-d33b276bcb1efd4fa14c32fec68ae24baf30eb28.tar.gz
llvm-d33b276bcb1efd4fa14c32fec68ae24baf30eb28.tar.bz2
llvm-d33b276bcb1efd4fa14c32fec68ae24baf30eb28.tar.xz
Tidy up. Whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138767 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/SMLoc.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/llvm/Support/SMLoc.h b/include/llvm/Support/SMLoc.h
index 967bf1432c..02db32794b 100644
--- a/include/llvm/Support/SMLoc.h
+++ b/include/llvm/Support/SMLoc.h
@@ -18,19 +18,19 @@
namespace llvm {
// SMLoc - Represents a location in source code.
-class SMLoc {
+class SMLoc {
const char *Ptr;
public:
SMLoc() : Ptr(0) {}
SMLoc(const SMLoc &RHS) : Ptr(RHS.Ptr) {}
-
+
bool isValid() const { return Ptr != 0; }
-
+
bool operator==(const SMLoc &RHS) const { return RHS.Ptr == Ptr; }
bool operator!=(const SMLoc &RHS) const { return RHS.Ptr != Ptr; }
-
+
const char *getPointer() const { return Ptr; }
-
+
static SMLoc getFromPointer(const char *Ptr) {
SMLoc L;
L.Ptr = Ptr;