Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(438)

Side by Side Diff: src/IceRevision.cpp

Issue 2306273002: Subzero: Fix target attribute when SZTARGET is defined. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Use string concatenation. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/IceDefs.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « src/IceDefs.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698