summaryrefslogtreecommitdiffstats
path: root/contrib/llvm
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2013-08-24 16:09:52 +0000
committeremaste <emaste@FreeBSD.org>2013-08-24 16:09:52 +0000
commit4f1b1f83e836ce9ca8b22a7de174c1c41b175e20 (patch)
treea55df2c191d0f7c09af01fcdf3dbbfd5821dcacf /contrib/llvm
parent975b987941efdd0e6f856704f02f5bdc873370b9 (diff)
downloadFreeBSD-src-4f1b1f83e836ce9ca8b22a7de174c1c41b175e20.zip
FreeBSD-src-4f1b1f83e836ce9ca8b22a7de174c1c41b175e20.tar.gz
Revert lldb change for Attribute::NoBuiltin
NoBuiltin was introduced after clang/llvm 3.3 and thus does not exist in FreeBSD. Thus special handling for the attribute is not needed in lldb. This reverts lldb r186990 (git eebd175) Sponsored by: DARPA, AFRL
Diffstat (limited to 'contrib/llvm')
-rw-r--r--contrib/llvm/tools/lldb/source/Expression/IRForTarget.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/contrib/llvm/tools/lldb/source/Expression/IRForTarget.cpp b/contrib/llvm/tools/lldb/source/Expression/IRForTarget.cpp
index cac3fdf..dc27b65 100644
--- a/contrib/llvm/tools/lldb/source/Expression/IRForTarget.cpp
+++ b/contrib/llvm/tools/lldb/source/Expression/IRForTarget.cpp
@@ -356,20 +356,6 @@ IRForTarget::ResolveFunctionPointers(llvm::Module &llvm_module)
if (value_ptr)
*value_ptr = value;
-
- // If we are replacing a function with the nobuiltin attribute, it may
- // be called with the builtin attribute on call sites. Remove any such
- // attributes since it's illegal to have a builtin call to something
- // other than a nobuiltin function.
- if (fun->hasFnAttribute(Attribute::NoBuiltin)) {
- Attribute builtin = Attribute::get(fun->getContext(), Attribute::Builtin);
-
- for (auto u = fun->use_begin(), e = fun->use_end(); u != e; ++u) {
- if (auto call = dyn_cast<CallInst>(*u)) {
- call->removeAttribute(AttributeSet::FunctionIndex, builtin);
- }
- }
- }
fun->replaceAllUsesWith(value);
}
OpenPOWER on IntegriCloud