• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===- subzero/src/IceRevision.h - Revision string embedding ----*- C++ -*-===//
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 Declares the function for returning the Subzero revision string.
12 ///
13 //===----------------------------------------------------------------------===//
14 
15 #ifndef SUBZERO_SRC_ICEREVISION_H
16 #define SUBZERO_SRC_ICEREVISION_H
17 
18 namespace Ice {
19 
20 // Returns the Subzero revision string, which is meant to be essentially the git
21 // hash of the repo when Subzero was built.
22 //
23 // Note: It would be possible to declare this a constexpr char[] and put its
24 // definition right here in the include file.  But since the git hash is passed
25 // to the compiler on the command line, and compilation is directed through a
26 // Makefile, lack of recompilation could lead to different files seeing
27 // inconsistent revision strings.
28 const char *getSubzeroRevision();
29 
30 } // end of namespace Ice
31 
32 #endif // SUBZERO_SRC_ICEREVISION_H
33