[llvm-commits] [llvm] r138767 - /llvm/trunk/include/llvm/Support/SMLoc.h
Jim Grosbach
grosbach at apple.com
Mon Aug 29 14:15:21 PDT 2011
Author: grosbach
Date: Mon Aug 29 16:15:20 2011
New Revision: 138767
URL: http://llvm.org/viewvc/llvm-project?rev=138767&view=rev
Log:
Tidy up. Whitespace.
Modified:
llvm/trunk/include/llvm/Support/SMLoc.h
Modified: llvm/trunk/include/llvm/Support/SMLoc.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/SMLoc.h?rev=138767&r1=138766&r2=138767&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/SMLoc.h (original)
+++ llvm/trunk/include/llvm/Support/SMLoc.h Mon Aug 29 16:15:20 2011
@@ -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;
More information about the llvm-commits
mailing list