From 83384fcb5c6abe679ab3f56677d8c071fe2489e7 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Thu, 26 Aug 2010 17:47:45 +0000 Subject: [PATCH] Fix prototypes. llvm-svn: 112200 --- include/llvm-c/lto.h | 7 ++++--- tools/lto/lto.cpp | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/include/llvm-c/lto.h b/include/llvm-c/lto.h index 95b3d85a72e..e6f69afa2ec 100644 --- a/include/llvm-c/lto.h +++ b/include/llvm-c/lto.h @@ -18,6 +18,7 @@ #include #include +#include "llvm/System/DataTypes.h" #define LTO_API_VERSION 3 @@ -145,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 unsigned int +extern uint32_t lto_module_get_num_symbols(lto_module_t mod); @@ -153,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, unsigned int index); +lto_module_get_symbol_name(lto_module_t mod, uint32_t 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, unsigned int index); +lto_module_get_symbol_attribute(lto_module_t mod, uint32_t index); /** diff --git a/tools/lto/lto.cpp b/tools/lto/lto.cpp index a7ce2a07bbf..3d7ef0a1cb9 100644 --- a/tools/lto/lto.cpp +++ b/tools/lto/lto.cpp @@ -150,7 +150,7 @@ const char* lto_module_get_symbol_name(lto_module_t mod, uint32_t index) // returns the attributes of the ith symbol in the object module // lto_symbol_attributes lto_module_get_symbol_attribute(lto_module_t mod, - uint32_t index) + uint32_t index) { return mod->getSymbolAttributes(index); }