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

Side by Side Diff: include/llvm/Bitcode/NaCl/NaClDebugging.h

Issue 14813032: Make abbreviations explicit in pnacl-freeze/thaw. (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Fix typos in CL Created 7 years, 7 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
OLDNEW
(Empty)
1 //===-- llvm/Bitcode/NaCl/NaClDebugging.h - ---------------------*- C++ -*-===//
2 // Debugging utilites.
3 //
4 // The LLVM Compiler Infrastructure
5 //
6 // This file is distributed under the University of Illinois Open Source
7 // License. See LICENSE.TXT for details.
8 //
9 //===----------------------------------------------------------------------===//
10
11 /* Define simple debugging utilities that are turned on/off by the
12 * value of the define flag NACL_DEBUGGING.
13 *
14 * To turn on debugging of instruction decoding, change value of
jvoung (off chromium) 2013/05/14 23:47:14 We shouldn't need our own debugging utils? llvm h
Karl 2013/05/17 20:52:18 Removed and using llvm debug.h
15 * NACL_DEBUGGING to 1.
16 *
17 */
18
19 #ifndef LLVM_BITCODE_NACL_NACLDEBUGGING_H
20 #define LLVM_BITCODE_NACL_NACLDEBUGGING_H
21
22 /* Turn off debugging if not otherwise specified in the specific code file. */
23 #ifndef NACL_DEBUGGING
24 #define NACL_DEBUGGING 0
25 #endif
26
27 #if NACL_DEBUGGING
28 /* Defines to execute statement(s) s if in NACL_DEBUGGING mode, and compile
29 * in either mode. This allows type checking to be applied at all times.
30 */
31 #define NACL_DEBUG(s) s
32 #else
33 /* Defines to compile but not include statement(s) s if not
34 * in NACL_DEBUGGING mode.
35 */
36 #define NACL_DEBUG(s) do { if (0) { s; } } while (0)
37 #endif
38
39 #if NACL_DEBUGGING
40 /* Defines to compile execute statement(s) if in NACL_DEBUGGING mode.
41 * Erases otherwise. This should only be used when linking
42 * would otherwise require the symbol when NACL_DEBUGGING is false.
43 */
44 #define NACL_DEBUG_OR_ERASE(s) s
45 #else
46 /* Defines to erase s if not in NACL_DEBUGGING mode. */
47 #define NACL_DEBUG_OR_ERASE(s)
48 #endif
49
50 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698