Jim Stichnoth | 54cf1a2 | 2016-08-08 14:15:00 -0700 | [diff] [blame] | 1 | //===- subzero/src/IceRevision.cpp - Revision string embedding ------------===// |
| 2 | // |
| 3 | // The Subzero Code Generator |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | /// |
| 10 | /// \file |
| 11 | /// \brief Implements the function for returning the Subzero revision string. |
| 12 | /// |
| 13 | //===----------------------------------------------------------------------===// |
| 14 | |
| 15 | #include "IceRevision.h" |
| 16 | |
Jim Stichnoth | 84ea9a7 | 2016-09-09 09:33:07 -0700 | [diff] [blame^] | 17 | #include "IceDefs.h" // XSTRINGIFY |
Jim Stichnoth | 54cf1a2 | 2016-08-08 14:15:00 -0700 | [diff] [blame] | 18 | |
| 19 | #ifndef SUBZERO_REVISION |
| 20 | #define SUBZERO_REVISION unknown |
| 21 | #endif // !SUBZERO_REVISION |
| 22 | |
| 23 | namespace Ice { |
| 24 | const char *getSubzeroRevision() { |
| 25 | return "Subzero_revision_" XSTRINGIFY(SUBZERO_REVISION); |
| 26 | } |
| 27 | } // end of namespace Ice |