From 6a6623c596fc12f64c813ea14a006ac6da3e33fe Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Fri, 7 Jan 2011 22:26:25 +0000 Subject: 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123038 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm-c/lto.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'include/llvm-c') diff --git a/include/llvm-c/lto.h b/include/llvm-c/lto.h index 8dccc78640..08c12af40a 100644 --- a/include/llvm-c/lto.h +++ b/include/llvm-c/lto.h @@ -18,7 +18,6 @@ #include #include -#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); /** -- cgit v1.2.3-70-g09d2