Lines Matching defs:source
2 * Copyright 2012, The Android Open Source Project
31 #include "bcc/Source.h"
114 // embed build checksum metadata into the source
209 ALOGE("Unable to compile the source to file %s! (%s)", pOutputPath,
255 Source *source = Source::CreateFromBuffer(pContext, pResName,
257 if (source == nullptr) {
261 Script script(source);
306 const std::vector<Source*>& sources,
314 for (Source* source : sources) {
315 if (!source->extractMetadata()) {
331 for (Source* source : sources) {
333 source->getWrapperInformation(&sourceWrapperCompilerVersion, &sourceWrapperOptimizationLevel);
337 ALOGE("ScriptGroup source files have inconsistent metadata");
344 std::unique_ptr<llvm::Module> sourceModule(&source->getModule());
346 ALOGE("Linking for module in source failed.");
349 // source->getModule() is destroyed after linking.
350 source->markModuleDestroyed();
351 // linking copies metadata from source->getModule(), but we don't
353 // instantiate a Source instance from the new Module).
367 std::vector<Source*> sourcesToFuse;
388 Source* source = sources[p.first];
391 if (!renameInvoke(Context, source, slot, newName, &module)) {
400 const std::unique_ptr<Source> source(
401 Source::CreateFromModule(Context, pOutputFilepath, module,
404 Script script(source.get());