diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-08-29 21:15:20 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-08-29 21:15:20 +0000 |
commit | d33b276bcb1efd4fa14c32fec68ae24baf30eb28 (patch) | |
tree | ba30a0b5be77fcaaadcdc0310323af780c050218 /include | |
parent | acb274baacbc104d7ef3b826b443847f11548760 (diff) | |
download | external_llvm-d33b276bcb1efd4fa14c32fec68ae24baf30eb28.zip external_llvm-d33b276bcb1efd4fa14c32fec68ae24baf30eb28.tar.gz external_llvm-d33b276bcb1efd4fa14c32fec68ae24baf30eb28.tar.bz2 |
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.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/llvm/Support/SMLoc.h b/include/llvm/Support/SMLoc.h index 967bf14..02db327 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; |