summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c/lto.h
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-01-07 22:26:25 +0000
committerDevang Patel <dpatel@apple.com>2011-01-07 22:26:25 +0000
commit39bd6cebcd776ac03889d0a2576ab1dcac5e4b32 (patch)
tree709ae1556d90406c839c3796ddcfa62a8dec582b /llvm/include/llvm-c/lto.h
parent46595b9ae2af6a7c7857f43cecf8fb4af8366ba0 (diff)
downloadbcm5719-llvm-39bd6cebcd776ac03889d0a2576ab1dcac5e4b32.tar.gz
bcm5719-llvm-39bd6cebcd776ac03889d0a2576ab1dcac5e4b32.zip
Do not include DataTypes.h in llvm-c/lto.h.
This means avoid using uint32_t. This patch reverts r112200 and fixes original problem by fixing argument type in lto.cpp. llvm-svn: 123038
Diffstat (limited to 'llvm/include/llvm-c/lto.h')
-rw-r--r--llvm/include/llvm-c/lto.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/include/llvm-c/lto.h b/llvm/include/llvm-c/lto.h
index 8dccc786407..08c12af40ae 100644
--- a/llvm/include/llvm-c/lto.h
+++ b/llvm/include/llvm-c/lto.h
@@ -18,7 +18,6 @@
#include <stdbool.h>
#include <stddef.h>
-#include "llvm/Support/DataTypes.h"
#define LTO_API_VERSION 4
@@ -147,7 +146,7 @@ lto_module_set_target_triple(lto_module_t mod, const char *triple);
/**
* Returns the number of symbols in the object module.
*/
-extern uint32_t
+extern unsigned int
lto_module_get_num_symbols(lto_module_t mod);
@@ -155,14 +154,14 @@ lto_module_get_num_symbols(lto_module_t mod);
* Returns the name of the ith symbol in the object module.
*/
extern const char*
-lto_module_get_symbol_name(lto_module_t mod, uint32_t index);
+lto_module_get_symbol_name(lto_module_t mod, unsigned int index);
/**
* Returns the attributes of the ith symbol in the object module.
*/
extern lto_symbol_attributes
-lto_module_get_symbol_attribute(lto_module_t mod, uint32_t index);
+lto_module_get_symbol_attribute(lto_module_t mod, unsigned int index);
/**
OpenPOWER on IntegriCloud