mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Tidy up. Whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138767 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
acb274baac
commit
d33b276bcb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user