Nick Lewycky
91ea404e98
Add a couple new testcases.
...
llvm-svn: 84385
2009-10-18 00:42:07 +00:00
Chris Lattner
ec411e9199
replace a useless test with a useful one
...
llvm-svn: 84383
2009-10-17 23:59:51 +00:00
Eric Christopher
4eafc31368
More warnings patrol: Another unused argument and more implicit
...
conversions.
llvm-svn: 84382
2009-10-17 23:56:18 +00:00
Daniel Dunbar
cd23718ca1
Attempt to unbreak the MSVC build.
...
llvm-svn: 84381
2009-10-17 23:53:11 +00:00
Daniel Dunbar
125c9c98f7
Simplify ExtVectorElementExpr::containsDuplicateElements().
...
llvm-svn: 84380
2009-10-17 23:53:04 +00:00
Daniel Dunbar
fe66bf79a0
Add FIXME.
...
llvm-svn: 84379
2009-10-17 23:52:58 +00:00
Daniel Dunbar
ebd5b4a3aa
Avoid std::string concatenation.
...
llvm-svn: 84378
2009-10-17 23:52:50 +00:00
Daniel Dunbar
cfae9d53a5
StringRefize some parts of Diagnostic API.
...
llvm-svn: 84377
2009-10-17 23:52:43 +00:00
Daniel Dunbar
4a1669853f
Remove unused BernsteinHash functions.
...
llvm-svn: 84376
2009-10-17 23:52:36 +00:00
Daniel Dunbar
f8502d50f7
Switch to llvm::HashString.
...
llvm-svn: 84375
2009-10-17 23:52:28 +00:00
Nick Lewycky
bb1410ea8b
Fix test/Bindings/Ocaml/vmcore.ml. When IRBuilder::CreateMalloc was removed,
...
LLVMBuildMalloc was reimplemented but with the bug that it didn't insert the
resulting instruction.
llvm-svn: 84374
2009-10-17 23:52:26 +00:00
Chris Lattner
b2647b9e67
inline isGEP away.
...
llvm-svn: 84373
2009-10-17 23:48:54 +00:00
Daniel Dunbar
54279632f3
Fix my -Asserts warning fix.
...
llvm-svn: 84372
2009-10-17 23:15:04 +00:00
Nuno Lopes
24241d249e
add gentoo x86 2009.1 (gcc 4.3.4) include paths
...
llvm-svn: 84371
2009-10-17 23:11:14 +00:00
Douglas Gregor
0b3d95ae64
Fix a crash with qualified member access into a non-type, from Sean Hunt!
...
llvm-svn: 84370
2009-10-17 22:37:54 +00:00
Daniel Dunbar
a1944d704e
Describe/link some of the universal driver related work.
...
llvm-svn: 84369
2009-10-17 22:08:19 +00:00
Chris Lattner
f67d297eda
Teach vm core to more aggressively fold 'trunc' constantexprs,
...
allowing it to simplify the crazy constantexprs in the testcases
down to something sensible. This allows -std-compile-opts to
completely "devirtualize" the pointers to member functions in
the testcase from PR5176.
llvm-svn: 84368
2009-10-17 21:53:27 +00:00
Chris Lattner
6f463f9ad4
remove # uses from FileCheck lines.
...
llvm-svn: 84367
2009-10-17 21:51:19 +00:00
Daniel Dunbar
d512efa6d2
Add a "Universal Driver" open project, and web page.
...
llvm-svn: 84366
2009-10-17 21:50:11 +00:00
Douglas Gregor
4bbd1acf8b
When type-checking a C++ "new" expression, don't type-check the actual
...
initialization if any of the constructor/initialization arguments are
type-dependent. Fixes PR5224.
llvm-svn: 84365
2009-10-17 21:40:42 +00:00
Chris Lattner
965fe98af6
rename test
...
llvm-svn: 84364
2009-10-17 21:31:19 +00:00
Sebastian Redl
df4b80e7c0
When resolving the address of an overloaded function or function template, mark the result as referenced.
...
The most important effect of this is that function templates only referenced by address expressions now get instantiated. This, in turn, means that Hello World compiles with the Apache stdcxx library even when using endl.
llvm-svn: 84363
2009-10-17 21:12:09 +00:00
Sebastian Redl
fef1c0d54f
Don't add implicit casts of explicit address-taking of overloaded functions.
...
Taking the address of an overloaded function with an explicit address-of operator wrapped the operator in an implicit cast that added yet another pointer level, leaving us with a corrupted AST, which crashed CodeGen in the test case I've added. Fix this by making FixOverloadedFunctionReference return whether there was an address-of operator and not adding the implicit cast in that case.
llvm-svn: 84362
2009-10-17 20:50:27 +00:00
Daniel Dunbar
98dd6d2927
Add IdentifierTable::CreateIdentifierInfo(StringRef).
...
llvm-svn: 84361
2009-10-17 20:44:06 +00:00
Daniel Dunbar
283ccf4342
Use StringExtra's HashString instead of BernsteinHash.
...
llvm-svn: 84360
2009-10-17 20:43:58 +00:00
Daniel Dunbar
bf4ca909e0
Add an open project. :)
...
llvm-svn: 84359
2009-10-17 20:43:50 +00:00
Daniel Dunbar
04f049f2f5
Move UnescapeString to a static function for its sole client; its inefficient and broken.
...
llvm-svn: 84358
2009-10-17 20:43:42 +00:00
Daniel Dunbar
59449581b2
Remove llvm::EscapeString, raw_ostream::write_escaped is much faster.
...
llvm-svn: 84357
2009-10-17 20:43:29 +00:00
Daniel Dunbar
8eff29d805
Use raw_ostream::write_escaped instead of EscapeString.
...
llvm-svn: 84356
2009-10-17 20:43:19 +00:00
Daniel Dunbar
4108c43fd1
Add raw_ostream::write_escaped, for writing escaped strings.
...
llvm-svn: 84355
2009-10-17 20:43:08 +00:00
Chris Lattner
9b24e8aba6
daniel really wants this in the testsuite.
...
llvm-svn: 84354
2009-10-17 20:37:18 +00:00
Chris Lattner
ec3a1565f6
teach getCorrespondingUnsignedType how to handle vectors of integers,
...
fixing PR4838.
llvm-svn: 84353
2009-10-17 20:33:28 +00:00
Mikhail Glushenkov
867f67301b
First draft of the OptionPreprocessor.
...
More to follow...
llvm-svn: 84352
2009-10-17 20:09:29 +00:00
Mikhail Glushenkov
ac90b38c48
This variable is never used.
...
llvm-svn: 84351
2009-10-17 20:08:47 +00:00
Mikhail Glushenkov
b2eba4904f
Disallow multiple instances of PluginPriority.
...
Several instances of PluginPriority in a single file most probably signifies a
programming error.
llvm-svn: 84350
2009-10-17 20:08:30 +00:00
Mikhail Glushenkov
4500d416aa
-O[0-3] options should be also forwarded to opt and llc.
...
This will require implementing OptionPreprocessor to forbid invalid invocations
such as 'llvmc -O1 -O2'.
llvm-svn: 84349
2009-10-17 20:07:49 +00:00
Nick Lewycky
e63c2cb3b7
Emit newlines at the end of instructions too.
...
llvm-svn: 84348
2009-10-17 19:43:45 +00:00
Sebastian Redl
548e629e02
In some dependent contexts, incomplete array types persist into FinalizeDeclaratorGroup. Don't require them to have a complete type. This allows us to compile Hello World with the Apache stdcxx library. If you don't use endl, it even links and runs.
...
llvm-svn: 84347
2009-10-17 19:37:06 +00:00
Edward O'Callaghan
93135aad29
Fix for PR5190, Credit to Zhanyong Wan.
...
llvm-svn: 84346
2009-10-17 19:32:54 +00:00
Sebastian Redl
5371aed18c
Add a DR437 testcase, but disable it for now, since it fails.
...
llvm-svn: 84345
2009-10-17 18:31:05 +00:00
Daniel Dunbar
77668004c4
Move StringMap's string has function into StringExtras.h
...
llvm-svn: 84344
2009-10-17 18:21:06 +00:00
Daniel Dunbar
1c0761d6e9
Avoid std::string thrashing in MultiKeywordSelector::getName(), and simplify.
...
llvm-svn: 84343
2009-10-17 18:13:02 +00:00
Daniel Dunbar
acb5a4b57c
Simplify more.
...
llvm-svn: 84342
2009-10-17 18:12:53 +00:00
Daniel Dunbar
9d9aa167e6
Simplify.
...
llvm-svn: 84341
2009-10-17 18:12:45 +00:00
Daniel Dunbar
e81a553162
Use raw_ostream instead of C stdio.
...
llvm-svn: 84340
2009-10-17 18:12:37 +00:00
Daniel Dunbar
5bf78579bd
Rewrite AttributeList::getKind to use StringRef API.
...
llvm-svn: 84339
2009-10-17 18:12:29 +00:00
Daniel Dunbar
403073e471
Simplify.
...
llvm-svn: 84338
2009-10-17 18:12:21 +00:00
Daniel Dunbar
e36337910f
Use raw_ostream for formatting integers, and use IdentifierInfo::getNameStr
...
instead of getName.
- -2 FIXMEs.
llvm-svn: 84337
2009-10-17 18:12:14 +00:00
Daniel Dunbar
c099f1a0c5
Remove unnecessary include.
...
llvm-svn: 84336
2009-10-17 18:11:57 +00:00
Ted Kremenek
9f3a643bad
Minor cleanup: move typedef out of anonymous namespace (which now contains nothing) and into RemoveDeadBindings. No functionality change.
...
llvm-svn: 84335
2009-10-17 17:45:11 +00:00