- Jan 28, 2010
-
-
Chris Lattner authored
runOnMachineFunction, and switch PPC to use EmitFunctionBody. The two ppc asmprinters now don't heave to define runOnMachineFunction. llvm-svn: 94722
-
Ted Kremenek authored
This function will use the format string parsing logic in libAnalysis, and once it is shown to be better than the current implementation it will replace AlternateCheckPrintfString() entirely. llvm-svn: 94721
-
Jeffrey Yasskin authored
llvm-svn: 94720
-
Chris Lattner authored
llvm-svn: 94719
-
Chris Lattner authored
"0" is nice and target independent. llvm-svn: 94718
-
Ted Kremenek authored
llvm-svn: 94717
-
Chris Lattner authored
Move the X86 implementation of function body emission up to AsmPrinter::EmitFunctionBody, which works by calling the virtual EmitInstruction method. llvm-svn: 94716
-
Ted Kremenek authored
llvm-svn: 94715
-
Douglas Gregor authored
diagnostic callback mechanism, so all diagnostics now go through that callback. Also, eliminate the displayDiagnostics flag to clang_createIndex(), since it is no longer necessary: the client determines whether to display diagnostics or not. llvm-svn: 94714
-
Ted Kremenek authored
llvm-svn: 94713
-
Devang Patel authored
llvm-svn: 94712
-
Devang Patel authored
llvm-svn: 94710
-
Douglas Gregor authored
clients can format diagnostics as they wish rather than having to parse standard error. All of the important parts of the front end's diagnostics are exposed: text, severity, location, source ranges, and fix-its. The diagnostics callback is now available with clang_createTranslationUnitFromSource() and clang_createTranslationUnit(). As part of this change, CXSourceLocation and CXSourceRange got one pointer larger, since we need to hold on to the SourceManager and LangOptions structures in the source location. This is the minimum amount of information needed for the functions that operate on source locations and ranges (as implemented now). Previously we held on to the ASTContext, but the diagnostics callback can end up with source locations when there is no ASTContext (or preprocessor). Still to do: - Code completion needs to support the diagnostics callback, once we have the ability to (de-)serialize diagnostics. - Eliminate the "displayDiagnostics" argument to createIndex; we'll always pass diagnostics to the callback and let it deal with display. llvm-svn: 94709
-
Chris Lattner authored
Overload it in the ARM backend to do nothing, since is does insane constant pool emission. llvm-svn: 94708
-
Ted Kremenek authored
llvm-svn: 94707
-
Chris Lattner authored
llvm-svn: 94706
-
Chris Lattner authored
constify EmitLinkage. llvm-svn: 94705
-
Ted Kremenek authored
llvm-svn: 94704
-
Chris Lattner authored
llvm-svn: 94703
-
Ted Kremenek authored
strings than what we currently have in Sema. This is both an experiment and a WIP. The idea is simple: parse the format string incrementally, constructing a well-structure representation of each format specifier. Each format specifier is then handed back one-by-one to a client via a callback. Malformed format strings are also handled with callbacks. The idea is to separate the parsing of the format string from the emission of diagnostics. Currently what we have in Sema for handling format strings is a mongrel of both that is hard to follow and difficult to modify (I can apply this label since I'm the original author of that code). This is in libAnalysis as it is reasonable generic and can potentially be used both by libSema and libChecker. Comments welcome. llvm-svn: 94702
-
Chris Lattner authored
MachineFunction::Alignment instead. llvm-svn: 94701
-
Chris Lattner authored
llvm-svn: 94700
-
Chris Lattner authored
is now less than 200 LOC! llvm-svn: 94699
-
Chris Lattner authored
llvm-svn: 94698
-
Sean Callanan authored
global namespace needlessly. llvm-svn: 94697
-
Sean Callanan authored
for the LLVM disassemblers. llvm-svn: 94696
-
- Jan 27, 2010
-
-
Dale Johannesen authored
let that stop it from being deleted, and change the DEBUG_VALUE value to undef. llvm-svn: 94694
-
Dale Johannesen authored
per document. llvm-svn: 94693
-
Dan Gohman authored
llvm-svn: 94692
-
Victor Hernandez authored
Need to recurse for all operands of function-local metadata; and handle Instructions (which map to themselves) llvm-svn: 94691
-
Bob Wilson authored
This was already being done in SSAUpdater::GetValueAtEndOfBlock so I've just changed SSAUpdater to check for existing PHIs in both places. llvm-svn: 94690
-
Jeffrey Yasskin authored
llvm-svn: 94688
-
Ted Kremenek authored
llvm-svn: 94687
-
Jeffrey Yasskin authored
Modules and ModuleProviders. Because the "ModuleProvider" simply materializes GlobalValues now, and doesn't provide modules, it's renamed to "GVMaterializer". Code that used to need a ModuleProvider to materialize Functions can now materialize the Functions directly. Functions no longer use a magic linkage to record that they're materializable; they simply ask the GVMaterializer. Because the C ABI must never change, we can't remove LLVMModuleProviderRef or the functions that refer to it. Instead, because Module now exposes the same functionality ModuleProvider used to, we store a Module* in any LLVMModuleProviderRef and translate in the wrapper methods. The bindings to other languages still use the ModuleProvider concept. It would probably be worth some time to update them to follow the C++ more closely, but I don't intend to do it. Fixes http://llvm.org/PR5737 and http://llvm.org/PR5735. llvm-svn: 94686
-
Daniel Dunbar authored
llvm-svn: 94685
-
Benjamin Kramer authored
llvm-svn: 94684
-
Benjamin Kramer authored
llvm-svn: 94683
-
Ted Kremenek authored
llvm-svn: 94682
-
Ken Dyck authored
now that the "InBytes" part of the name is implied by the return type, rename it to getDeclAlign(). llvm-svn: 94681
-
Benjamin Kramer authored
Use raw_ostreams in Preprocessor::ExpandBuiltinMacro. Still not nice but less fragile than the old code. llvm-svn: 94679
-