blob: c7ee9aa7893aa11451bac7dfc409939249a76217 [file] [log] [blame]
Jim Stichnoth54cf1a22016-08-08 14:15:00 -07001//===- 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 Stichnoth84ea9a72016-09-09 09:33:07 -070017#include "IceDefs.h" // XSTRINGIFY
Jim Stichnoth54cf1a22016-08-08 14:15:00 -070018
19#ifndef SUBZERO_REVISION
20#define SUBZERO_REVISION unknown
21#endif // !SUBZERO_REVISION
22
23namespace Ice {
24const char *getSubzeroRevision() {
25 return "Subzero_revision_" XSTRINGIFY(SUBZERO_REVISION);
26}
27} // end of namespace Ice