blob: b160392b19ade83beab8c23433fd3a71a7ff1dbe [file] [log] [blame]
Jim Cownie33f7b242014-04-09 15:40:23 +00001//===----------------------------------------------------------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is dual licensed under the MIT and the University of Illinois Open
6// Source Licenses. See LICENSE.txt for details.
7//
8//===----------------------------------------------------------------------===//
9
10
11
12#include <stdio.h>
13
14// ===========================================================================
15// Bring in the static string table and the enumerations for indexing into
16// it.
17// ===========================================================================
18
19#include "liboffload_msg.h"
20
21# define DYNART_STDERR_PUTS(__message_text__) fputs((__message_text__),stderr)
22
23// ===========================================================================
24// Now the code for accessing the message catalogs
25// ===========================================================================
26
27
28 void write_message(FILE * file, int msgCode) {
29 fputs(MESSAGE_TABLE_NAME[ msgCode ], file);
30 fflush(file);
31 }
32
33 char const *offload_get_message_str(int msgCode) {
34 return MESSAGE_TABLE_NAME[ msgCode ];
35 }