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 17 #include "IceDefs.h" // XSTRINGIFY 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 28