summaryrefslogtreecommitdiff
path: root/tools/lto/lto.cpp
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
commit6a6623c596fc12f64c813ea14a006ac6da3e33fe (patch)
tree20cec864a03ab39b9fe78978268389333f8b542a /tools/lto/lto.cpp
parent7c7e2da4aa0b0a710b22a823f744ffad6021035c (diff)
downloadllvm-6a6623c596fc12f64c813ea14a006ac6da3e33fe.tar.gz
llvm-6a6623c596fc12f64c813ea14a006ac6da3e33fe.tar.bz2
llvm-6a6623c596fc12f64c813ea14a006ac6da3e33fe.tar.xz
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
Diffstat (limited to 'tools/lto/lto.cpp')
-rw-r--r--tools/lto/lto.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/lto/lto.cpp b/tools/lto/lto.cpp
index 3d7ef0a1cb..75b40f4287 100644
--- a/tools/lto/lto.cpp
+++ b/tools/lto/lto.cpp
@@ -132,7 +132,7 @@ void lto_module_set_target_triple(lto_module_t mod, const char *triple)
//
// returns the number of symbols in the object module
//
-uint32_t lto_module_get_num_symbols(lto_module_t mod)
+unsigned int lto_module_get_num_symbols(lto_module_t mod)
{
return mod->getSymbolCount();
}
@@ -140,7 +140,7 @@ uint32_t lto_module_get_num_symbols(lto_module_t mod)
//
// returns the name of the ith symbol in the object module
//
-const char* lto_module_get_symbol_name(lto_module_t mod, uint32_t index)
+const char* lto_module_get_symbol_name(lto_module_t mod, unsigned int index)
{
return mod->getSymbolName(index);
}
@@ -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)
+ unsigned int index)
{
return mod->getSymbolAttributes(index);
}