| OLD | NEW |
| 1 //===- subzero/src/IceRevision.cpp - Revision string embedding ------------===// | 1 //===- subzero/src/IceRevision.cpp - Revision string embedding ------------===// |
| 2 // | 2 // |
| 3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
| 4 // | 4 // |
| 5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 /// | 9 /// |
| 10 /// \file | 10 /// \file |
| 11 /// \brief Implements the function for returning the Subzero revision string. | 11 /// \brief Implements the function for returning the Subzero revision string. |
| 12 /// | 12 /// |
| 13 //===----------------------------------------------------------------------===// | 13 //===----------------------------------------------------------------------===// |
| 14 | 14 |
| 15 #include "IceRevision.h" | 15 #include "IceRevision.h" |
| 16 | 16 |
| 17 #define XSTRINGIFY(x) STRINGIFY(x) | 17 #include "IceDefs.h" // XSTRINGIFY |
| 18 #define STRINGIFY(x) #x | |
| 19 | 18 |
| 20 #ifndef SUBZERO_REVISION | 19 #ifndef SUBZERO_REVISION |
| 21 #define SUBZERO_REVISION unknown | 20 #define SUBZERO_REVISION unknown |
| 22 #endif // !SUBZERO_REVISION | 21 #endif // !SUBZERO_REVISION |
| 23 | 22 |
| 24 namespace Ice { | 23 namespace Ice { |
| 25 const char *getSubzeroRevision() { | 24 const char *getSubzeroRevision() { |
| 26 return "Subzero_revision_" XSTRINGIFY(SUBZERO_REVISION); | 25 return "Subzero_revision_" XSTRINGIFY(SUBZERO_REVISION); |
| 27 } | 26 } |
| 28 } // end of namespace Ice | 27 } // end of namespace Ice |
| OLD | NEW |